Toolbox snapshot
The Reactive C++ Toolbox
Loading...
Searching...
No Matches
Public Types | Static Public Member Functions | Static Public Attributes | List of all members
toolbox::sys::MonoClock Struct Reference

#include <toolbox/sys/Time.hpp>

Public Types

using duration = Duration
 
using period = Duration::period
 
using rep = Duration::rep
 
using time_point = std::chrono::time_point< MonoClock, Duration >
 

Static Public Member Functions

static constexpr time_point max () noexcept
 
static time_point now () noexcept
 
static constexpr std::time_t to_time_t (const time_point &tp) noexcept
 
static constexpr time_point from_time_t (std::time_t t) noexcept
 

Static Public Attributes

static constexpr int Id {CLOCK_MONOTONIC}
 
static constexpr bool is_steady {true}
 

Detailed Description

Definition at line 44 of file Time.hpp.

Member Typedef Documentation

◆ duration

Definition at line 45 of file Time.hpp.

◆ period

Definition at line 46 of file Time.hpp.

◆ rep

Definition at line 47 of file Time.hpp.

◆ time_point

Definition at line 48 of file Time.hpp.

Member Function Documentation

◆ max()

static constexpr time_point toolbox::sys::MonoClock::max ( )
inlinestaticconstexprnoexcept

Definition at line 53 of file Time.hpp.

◆ now()

static time_point toolbox::sys::MonoClock::now ( )
inlinestaticnoexcept

Definition at line 61 of file Time.hpp.

◆ to_time_t()

static constexpr std::time_t toolbox::sys::MonoClock::to_time_t ( const time_point tp)
inlinestaticconstexprnoexcept

Definition at line 63 of file Time.hpp.

◆ from_time_t()

static constexpr time_point toolbox::sys::MonoClock::from_time_t ( std::time_t  t)
inlinestaticconstexprnoexcept

Definition at line 69 of file Time.hpp.

Member Data Documentation

◆ Id

constexpr int toolbox::sys::MonoClock::Id {CLOCK_MONOTONIC}
staticconstexpr

Definition at line 50 of file Time.hpp.

Referenced by now().

◆ is_steady

constexpr bool toolbox::sys::MonoClock::is_steady {true}
staticconstexpr

Definition at line 51 of file Time.hpp.


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