CX Framework
Cross-platform C utility framework
Loading...
Searching...
No Matches
Time

Modules

 Clock Functions
 
 Time Manipulation
 
 Time Unit Conversion
 

Macros

#define timeForever   9223372036854775807LL
 Maximum representable time value (approximately year 294,276 CE)
 
#define timeS(s)   timeFromSeconds(s)
 
#define timeMS(ms)   timeFromMsec(ms)
 

Detailed Description

CX and related systems represent time as the number of microseconds since noon on January 1, 4713 BCE (UTC) - the Julian date epoch.

This provides an unambiguous time representation that:

The time system includes:

Macro Definition Documentation

◆ timeMS

#define timeMS (   ms)    timeFromMsec(ms)

A time literal specified in milliseconds

Parameters
msNumber of milliseconds
Returns
Time value in microseconds

Definition at line 23 of file time.h.

◆ timeS

#define timeS (   s)    timeFromSeconds(s)

A time literal specified in seconds

Parameters
sNumber of seconds
Returns
Time value in microseconds

Definition at line 18 of file time.h.