Loading...
Searching...
No Matches
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 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.
 

Macro Definition Documentation

◆ CS_PER_SEC

#define CS_PER_SEC   (100LU)

The number of centiseconds per second.

Definition at line 70 of file time_units.h.

◆ HOURS_PER_DAY

#define HOURS_PER_DAY   (24LU)

The number of hours per day.

Definition at line 30 of file time_units.h.

◆ MIN_PER_DAY

#define MIN_PER_DAY   (1440LU)

The number of minutes per day.

Definition at line 35 of file time_units.h.

◆ MIN_PER_HOUR

#define MIN_PER_HOUR   (60LU)

The number of minutes per hour.

Definition at line 45 of file time_units.h.

◆ MS_PER_CS

#define MS_PER_CS   (10U)

The number of milliseconds per centisecond.

Definition at line 80 of file time_units.h.

◆ MS_PER_HOUR

#define MS_PER_HOUR   (3600000LU)

The number of milliseconds per hour.

Definition at line 55 of file time_units.h.

◆ MS_PER_SEC

#define MS_PER_SEC   (1000LU)

The number of milliseconds per second.

Definition at line 75 of file time_units.h.

◆ NS_PER_MS

#define NS_PER_MS   (1000000LU)

The number of nanoseconds per millisecond.

Definition at line 105 of file time_units.h.

◆ NS_PER_SEC

#define NS_PER_SEC   (1000000000LLU)

The number of nanoseconds per second.

Definition at line 110 of file time_units.h.

◆ NS_PER_US

#define NS_PER_US   (1000LU)

The number of nanoseconds per microsecond.

Definition at line 100 of file time_units.h.

◆ SEC_PER_DAY

#define SEC_PER_DAY   (86400LU)

The number of seconds per day.

Definition at line 40 of file time_units.h.

◆ SEC_PER_HOUR

#define SEC_PER_HOUR   (3600LU)

The number of seconds per hour.

Definition at line 50 of file time_units.h.

◆ SEC_PER_MIN

#define SEC_PER_MIN   (60LU)

The number of seconds per minute.

Definition at line 65 of file time_units.h.

◆ US_PER_CS

#define US_PER_CS   (10000U)

The number of microseconds per centisecond.

Definition at line 95 of file time_units.h.

◆ US_PER_HOUR

#define US_PER_HOUR   (3600000000LU)

The number of microseconds per hour.

Definition at line 60 of file time_units.h.

◆ US_PER_MS

#define US_PER_MS   (1000LU)

The number of microseconds per millisecond.

Definition at line 90 of file time_units.h.

◆ US_PER_SEC

#define US_PER_SEC   (1000000LU)

The number of microseconds per second.

Definition at line 85 of file time_units.h.