ndn::time::steady_clock Class Reference

Steady clock. More...

#include <time.hpp>

Public Types

typedef nanoseconds duration
 
typedef duration Duration
 
typedef duration::period period
 
typedef duration::rep rep
 
typedef boost::chrono::time_point< steady_clocktime_point
 
typedef time_point TimePoint
 

Static Public Member Functions

static time_point now () noexcept
 

Static Public Attributes

static constexpr bool is_steady = true
 

Friends

struct boost::asio::time_traits< steady_clock >
 

Detailed Description

Steady clock.

Steady clock represents a monotonic clock. The time points of this clock cannot decrease as physical time moves forward. This clock is not related to wall clock time, and is best suitable for measuring intervals.

Definition at line 111 of file time.hpp.

Member Typedef Documentation

typedef nanoseconds ndn::time::steady_clock::duration

Definition at line 114 of file time.hpp.

Definition at line 121 of file time.hpp.

typedef duration::period ndn::time::steady_clock::period

Definition at line 116 of file time.hpp.

typedef duration::rep ndn::time::steady_clock::rep

Definition at line 115 of file time.hpp.

typedef boost::chrono::time_point<steady_clock> ndn::time::steady_clock::time_point

Definition at line 117 of file time.hpp.

Definition at line 120 of file time.hpp.

Member Function Documentation

steady_clock::time_point ndn::time::steady_clock::now ( )
staticnoexcept

Definition at line 80 of file time.cpp.

Friends And Related Function Documentation

friend struct boost::asio::time_traits< steady_clock >
friend

Definition at line 138 of file time.hpp.

Member Data Documentation

constexpr bool ndn::time::steady_clock::is_steady = true
static

Definition at line 118 of file time.hpp.