OpenVPN 3 Core Library
Loading...
Searching...
No Matches
openvpn::AsioClock Struct Reference

#include <asiotimer.hpp>

Public Types

typedef olong rep
 
typedef std::ratio< 1, 1024 > period
 
typedef std::chrono::duration< rep, periodduration
 
typedef std::chrono::time_point< AsioClocktime_point
 

Static Public Member Functions

static constexpr bool is_steady ()
 
static time_point now ()
 
static time_point to_time_point (const Time &t)
 
static duration to_duration (const Time::Duration &d)
 

Detailed Description

Definition at line 26 of file asiotimer.hpp.

Member Typedef Documentation

◆ duration

typedef std::chrono::duration<rep, period> openvpn::AsioClock::duration

Definition at line 30 of file asiotimer.hpp.

◆ period

typedef std::ratio<1, 1024> openvpn::AsioClock::period

Definition at line 29 of file asiotimer.hpp.

◆ rep

Definition at line 28 of file asiotimer.hpp.

◆ time_point

typedef std::chrono::time_point<AsioClock> openvpn::AsioClock::time_point

Definition at line 31 of file asiotimer.hpp.

Member Function Documentation

◆ is_steady()

static constexpr bool openvpn::AsioClock::is_steady ( )
inlinestaticconstexpr

Definition at line 33 of file asiotimer.hpp.

◆ now()

static time_point openvpn::AsioClock::now ( )
inlinestatic

Definition at line 38 of file asiotimer.hpp.

◆ to_duration()

static duration openvpn::AsioClock::to_duration ( const Time::Duration &  d)
inlinestatic

Definition at line 48 of file asiotimer.hpp.

Here is the caller graph for this function:

◆ to_time_point()

static time_point openvpn::AsioClock::to_time_point ( const Time t)
inlinestatic

Definition at line 43 of file asiotimer.hpp.

Here is the caller graph for this function:

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