ndn::time::steady_clock Class Reference

Steady clock. More...

#include <ndn-cxx/util/time.hpp>

Public Types

using duration = boost::chrono::steady_clock::duration
 
typedef duration Duration
 
using period = duration::period
 
using rep = duration::rep
 
using time_point = boost::chrono::time_point< steady_clock >
 
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::wait_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 216 of file time.hpp.

Member Typedef Documentation

◆ duration

using ndn::time::steady_clock::duration = boost::chrono::steady_clock::duration

Definition at line 219 of file time.hpp.

◆ Duration

Definition at line 226 of file time.hpp.

◆ period

using ndn::time::steady_clock::period = duration::period

Definition at line 221 of file time.hpp.

◆ rep

using ndn::time::steady_clock::rep = duration::rep

Definition at line 220 of file time.hpp.

◆ time_point

using ndn::time::steady_clock::time_point = boost::chrono::time_point<steady_clock>

Definition at line 222 of file time.hpp.

◆ TimePoint

Definition at line 225 of file time.hpp.

Member Function Documentation

◆ now()

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

Definition at line 80 of file time.cpp.

Friends And Related Function Documentation

◆ boost::asio::wait_traits< steady_clock >

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

Definition at line 243 of file time.hpp.

Member Data Documentation

◆ is_steady

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

Definition at line 223 of file time.hpp.