BloombergLP::bsls::SystemTime

This struct provides a namespace for system-time-retrieval functions.

Synopsis

Declared in <bsls_systemtime.h>

struct SystemTime;

Static Member Functions

NameDescription
now Return the TimeInterval value representing the current system time according to the specified clockType. The returned value is the time interval between the reference time point defined for the supplied clockType (see {Reference Time Point}) and the current time.
nowMonotonicClock Return the TimeInterval value representing the current system time according to the monotonic clock. The returned value is the time interval between the reference time point for the monotonic clock (see {Reference Time Point}) and the current time.
nowRealtimeClock Return the TimeInterval value representing the current system time according to the real-time clock. The returned value is the time interval between the reference time point for the real-time clock (see {Reference Time Point}) and the current time.