Time unit representations

Timestamp representation, computation, and conversion. More...

Detailed Description

Timestamp representation, computation, and conversion.

Files

file  time_units.h
 Utility header providing time unit defines.
 

Macros

#define US_PER_SEC   (1000000LU)
 The number of microseconds per second.
 
#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 US_PER_MS   (1000LU)
 The number of microseconds per millisecond.
 
#define US_PER_CS   (10000U)
 The number of microseconds per centisecond.
 
#define MS_PER_CS   (10U)
 The number of milliseconds per centisecond.
 
#define NS_PER_US   (1000LU)
 The number of nanoseconds per microsecond.
 
#define NS_PER_SEC   (1000000000LLU)
 The number of nanoseconds per second.