summaryrefslogtreecommitdiff
path: root/src/lib/time_utils.c
Commit message (Collapse)AuthorAgeFilesLines
* ipcpd, lib: Fix timerwheel issues / time_utilsdimitri staessens2016-11-251-2/+2
| | | | | | | Timerwheel would skip some additions due to a missed wakeup signal. Addition of timespecs and timevals in the time utilities would overflow tv_nsec/tv_usec if the sum is an integer number of seconds.
* lib, ipcp: Compile on Apple junkdimitri staessens2016-08-301-0/+12
| | | | | | Disables robust mutexes and clock attributes for condition variables for compatibility with OSX (SUSv2). Implements clock_gettime and adds some defines for OSX compatibility in time_utils.
* lib, tools: Add POSIX version to source filesSander Vrijders2016-08-081-0/+1
| | | | | Sometimes the POSIX version was not set in source files. This caused the compiler to not find the timespec struct, since we are using C89.
* tools, lib: cbr tool for bandwidth testingdimitri staessens2016-05-241-0/+141
The tool sends constant bandwidth traffic between a client and a server. cbr --help for more info. Adds time_utils.h to the library containing useful functions for arithmetic with timespec and timeval structures.