Timestamp representation, computation, and conversion. More...
Timestamp representation, computation, and conversion.
Files | |
| file | time_units.h |
| Utility header providing time unit defines. | |
Macros | |
| #define | HOURS_PER_DAY (24LU) |
| The number of hours per day. | |
| #define | MIN_PER_DAY (1440LU) |
| The number of minutes per day. | |
| #define | SEC_PER_DAY (86400LU) |
| The number of seconds per day. | |
| #define | MIN_PER_HOUR (60LU) |
| The number of minutes per hour. | |
| #define | SEC_PER_HOUR (3600LU) |
| The number of seconds per hour. | |
| #define | MS_PER_HOUR (3600000LU) |
| The number of milliseconds per hour. | |
| #define | US_PER_HOUR (3600000000LU) |
| The number of microseconds per hour. | |
| #define | SEC_PER_MIN (60LU) |
| The number of seconds per minute. | |
| #define | CS_PER_SEC (100LU) |
| The number of centiseconds per second. | |
| #define | MS_PER_SEC (1000LU) |
| The number of milliseconds per second. | |
| #define | MS_PER_CS (10U) |
| The number of milliseconds per centisecond. | |
| #define | US_PER_SEC (1000000LU) |
| The number of microseconds per second. | |
| #define | US_PER_MS (1000LU) |
| The number of microseconds per millisecond. | |
| #define | US_PER_CS (10000U) |
| The number of microseconds per centisecond. | |
| #define | NS_PER_US (1000LU) |
| The number of nanoseconds per microsecond. | |
| #define | NS_PER_MS (1000000LU) |
| The number of nanoseconds per millisecond. | |
| #define | NS_PER_SEC (1000000000LLU) |
| The number of nanoseconds per second. | |
| #define CS_PER_SEC (100LU) |
The number of centiseconds per second.
Definition at line 66 of file time_units.h.
| #define HOURS_PER_DAY (24LU) |
The number of hours per day.
Definition at line 26 of file time_units.h.
| #define MIN_PER_DAY (1440LU) |
The number of minutes per day.
Definition at line 31 of file time_units.h.
| #define MIN_PER_HOUR (60LU) |
The number of minutes per hour.
Definition at line 41 of file time_units.h.
| #define MS_PER_CS (10U) |
The number of milliseconds per centisecond.
Definition at line 76 of file time_units.h.
| #define MS_PER_HOUR (3600000LU) |
The number of milliseconds per hour.
Definition at line 51 of file time_units.h.
| #define MS_PER_SEC (1000LU) |
The number of milliseconds per second.
Definition at line 71 of file time_units.h.
| #define NS_PER_MS (1000000LU) |
The number of nanoseconds per millisecond.
Definition at line 101 of file time_units.h.
| #define NS_PER_SEC (1000000000LLU) |
The number of nanoseconds per second.
Definition at line 106 of file time_units.h.
| #define NS_PER_US (1000LU) |
The number of nanoseconds per microsecond.
Definition at line 96 of file time_units.h.
| #define SEC_PER_DAY (86400LU) |
The number of seconds per day.
Definition at line 36 of file time_units.h.
| #define SEC_PER_HOUR (3600LU) |
The number of seconds per hour.
Definition at line 46 of file time_units.h.
| #define SEC_PER_MIN (60LU) |
The number of seconds per minute.
Definition at line 61 of file time_units.h.
| #define US_PER_CS (10000U) |
The number of microseconds per centisecond.
Definition at line 91 of file time_units.h.
| #define US_PER_HOUR (3600000000LU) |
The number of microseconds per hour.
Definition at line 56 of file time_units.h.
| #define US_PER_MS (1000LU) |
The number of microseconds per millisecond.
Definition at line 86 of file time_units.h.
| #define US_PER_SEC (1000000LU) |
The number of microseconds per second.
Definition at line 81 of file time_units.h.