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::WallClock 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< WallClock, 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_REALTIME}
 
static constexpr bool is_steady {false}
 

Detailed Description

Definition at line 77 of file Time.hpp.

Member Typedef Documentation

◆ duration

Definition at line 78 of file Time.hpp.

◆ period

Definition at line 79 of file Time.hpp.

◆ rep

Definition at line 80 of file Time.hpp.

◆ time_point

Definition at line 81 of file Time.hpp.

Member Function Documentation

◆ max()

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

Definition at line 86 of file Time.hpp.

◆ now()

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

Definition at line 94 of file Time.hpp.

◆ to_time_t()

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

Definition at line 96 of file Time.hpp.

◆ from_time_t()

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

Definition at line 102 of file Time.hpp.

Member Data Documentation

◆ Id

constexpr int toolbox::sys::WallClock::Id {CLOCK_REALTIME}
staticconstexpr

Definition at line 83 of file Time.hpp.

Referenced by now().

◆ is_steady

constexpr bool toolbox::sys::WallClock::is_steady {false}
staticconstexpr

Definition at line 84 of file Time.hpp.


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