LogCabin
|
Monotonic clock in nanosecond granularity. More...
#include <Time.h>
Public Types | |
typedef std::chrono::nanoseconds | duration |
typedef duration::rep | rep |
typedef duration::period | period |
typedef std::chrono::time_point < CSteadyClock, duration > | time_point |
Static Public Member Functions | |
static time_point | now () |
Static Public Attributes | |
static const bool | is_steady |
Monotonic clock in nanosecond granularity.
Wrapper around clock_gettime(STEADY_CLOCK_ID = CLOCK_MONOTONIC). Usually, you'll want to access this through SteadyClock.
This is preferred over std::chrono::monotonic_clock and std::chrono::steady_clock for earlier libstdc++ versions, since those use are not actually monotonic (they're typedefed to system_clock).
typedef std::chrono::nanoseconds LogCabin::Core::Time::CSteadyClock::duration |
typedef duration::rep LogCabin::Core::Time::CSteadyClock::rep |
typedef duration::period LogCabin::Core::Time::CSteadyClock::period |
typedef std::chrono::time_point<CSteadyClock, duration> LogCabin::Core::Time::CSteadyClock::time_point |
const bool LogCabin::Core::Time::CSteadyClock::is_steady [static] |