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

rdtsc clock policy (requires invariant TSC and CPU pinning). More...

#include <clock.hpp>

Public Types

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

Public Member Functions

 Rdtsc () noexcept
 default constructor.
 

Static Public Member Functions

static TimePoint now () noexcept
 read the current time.
 

Detailed Description

rdtsc clock policy (requires invariant TSC and CPU pinning).

Member Typedef Documentation

◆ Duration

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

◆ Stats

◆ TimePoint

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

Constructor & Destructor Documentation

◆ Rdtsc()

join::Rdtsc::Rdtsc ( )
inlinenoexcept

default constructor.

Member Function Documentation

◆ now()

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

read the current time.

Returns
current time point.

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