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

raw monotonic clock policy (raw hardware clock, may drift). More...

#include <clock.hpp>

Public Types

using Duration = std::chrono::nanoseconds
 
using TimePoint = std::chrono::time_point<NanoClock>
 
using Stats = BasicStats<MonotonicRaw>
 

Public Member Functions

constexpr MonotonicRaw () 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

raw monotonic clock policy (raw hardware clock, may drift).

Member Typedef Documentation

◆ Duration

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

◆ Stats

◆ TimePoint

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

Constructor & Destructor Documentation

◆ MonotonicRaw()

join::MonotonicRaw::MonotonicRaw ( )
constexprdefaultnoexcept

default constructor.

Member Function Documentation

◆ now()

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

read the current time.

Returns
current time point.

◆ type()

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

get the POSIX clock identifier for this policy.

Returns
CLOCK_MONOTONIC_RAW.

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