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

#include <asiotimer.hpp>

Public Types

using rep = olong
 
using period = std::ratio< 1, 1024 >
 
using duration = std::chrono::duration< rep, period >
 
using time_point = std::chrono::time_point< AsioClock >
 

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

using openvpn::AsioClock::duration = std::chrono::duration<rep, period>

Definition at line 30 of file asiotimer.hpp.

◆ period

using openvpn::AsioClock::period = std::ratio<1, 1024>

Definition at line 29 of file asiotimer.hpp.

◆ rep

Definition at line 28 of file asiotimer.hpp.

◆ time_point

using openvpn::AsioClock::time_point = std::chrono::time_point<AsioClock>

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: