join 1.0
lightweight network framework library
Loading...
Searching...
No Matches
join::Monotonic Class Reference

monotonic clock policy (stable, adjusted, recommended default). More...

#include <clock.hpp>

Public Types

using Duration = std::chrono::nanoseconds
 
using TimePoint = std::chrono::time_point<NanoClock>
 
using Timer = BasicTimer<Monotonic>
 
using Stats = BasicStats<Monotonic>
 

Public Member Functions

constexpr Monotonic () noexcept=default
 default constructor.
 

Static Public Member Functions

static constexpr int type () noexcept
 get the POSIX clock identifier for this policy.
 
static TimePoint now () noexcept
 read the current time.
 

Detailed Description

monotonic clock policy (stable, adjusted, recommended default).

Member Typedef Documentation

◆ Duration

using join::Monotonic::Duration = std::chrono::nanoseconds

◆ Stats

◆ TimePoint

using join::Monotonic::TimePoint = std::chrono::time_point<NanoClock>

◆ Timer

Constructor & Destructor Documentation

◆ Monotonic()

join::Monotonic::Monotonic ( )
constexprdefaultnoexcept

default constructor.

Member Function Documentation

◆ now()

static TimePoint join::Monotonic::now ( )
inlinestaticnoexcept

read the current time.

Returns
current time point.

◆ type()

static constexpr int join::Monotonic::type ( )
inlinestaticconstexprnoexcept

get the POSIX clock identifier for this policy.

Returns
CLOCK_MONOTONIC.

The documentation for this class was generated from the following file: