12 #ifndef ROC_CORE_TIME_H_
13 #define ROC_CORE_TIME_H_
const nanoseconds_t Millisecond
One millisecond represented in nanoseconds.
void sleep_for(nanoseconds_t duration)
Sleep specified amount of time.
const nanoseconds_t Nanosecond
One nanosecond represented in nanoseconds.
nanoseconds_t timestamp()
Get current timestamp in nanoseconds.
void sleep_until(nanoseconds_t timestamp)
Sleep until the specified absolute time point has been reached.
const nanoseconds_t Second
One second represented in nanoseconds.
const nanoseconds_t Minute
One minute represented in nanoseconds.
const nanoseconds_t Microsecond
One microsecond represented in nanoseconds.
const nanoseconds_t Hour
One hour represented in nanoseconds.
int64_t nanoseconds_t
Nanoseconds.
Commonly used types and functions.