tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
system_clock Struct Reference

#include <system_clock.hpp>

Public Types

using duration = chrono::duration<rep, period>
 
using period = micro
 
using rep = int32_t
 
using time_point = chrono::time_point<system_clock>
 

Static Public Member Functions

static auto from_time_t (time_t t) noexcept -> time_point
 
static auto now () noexcept -> time_point
 
static auto to_time_t (time_point const &t) noexcept -> time_t
 

Static Public Attributes

static constexpr bool is_steady = false
 

Member Typedef Documentation

◆ duration

◆ period

using period = micro

◆ rep

using rep = int32_t

◆ time_point

Member Function Documentation

◆ from_time_t()

auto from_time_t ( time_t t) -> time_point
inlinestaticnodiscardnoexcept

◆ now()

auto now ( ) -> time_point
inlinestaticnodiscardnoexcept

◆ to_time_t()

auto to_time_t ( time_point const & t) -> time_t
inlinestaticnodiscardnoexcept

Member Data Documentation

◆ is_steady

bool is_steady = false
staticconstexpr

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