Include dependency graph for time_util.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Defines | |
| #define | MICROS_PER_SECOND 1000000 |
| The number of microseconds per second. | |
| #define | NANOS_PER_MICRO 1000 |
| The number of nanoseconds per microsecond. | |
| #define | tscmp(tvp, uvp, cmp) |
| Compare two timespec's. | |
Functions | |
| timespec | microsec_to_timespec (unsigned long long microseconds) |
| Convert a microsecond value to a struct timespec. | |
| unsigned long long | timespec_to_microsec (struct timespec *time_spec) |
| Convert a timespec to a microsecond value. | |
|
|
Value: (((tvp)->tv_sec == (uvp)->tv_sec) ? \
((tvp)->tv_nsec cmp (uvp)->tv_nsec) : \
((tvp)->tv_sec cmp (uvp)->tv_sec))
|
|
|
Convert a microsecond value to a struct timespec.
|
|
|
Convert a timespec to a microsecond value. NOTE: There is a loss of precision in the conversion.
|
1.3.4