LogCabin
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Types | Static Public Member Functions | Static Public Attributes
LogCabin::Core::Time::CSteadyClock Struct Reference

Monotonic clock in nanosecond granularity. More...

#include <Time.h>

List of all members.

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

Detailed Description

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).

Definition at line 91 of file Time.h.


Member Typedef Documentation

typedef std::chrono::nanoseconds LogCabin::Core::Time::CSteadyClock::duration

Definition at line 92 of file Time.h.

Definition at line 93 of file Time.h.

Definition at line 94 of file Time.h.

Definition at line 95 of file Time.h.


Member Function Documentation

Definition at line 46 of file Time.cc.


Member Data Documentation

Definition at line 96 of file Time.h.


The documentation for this struct was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines