userver: utils::datetime::SteadyCoarseClock Struct Reference
Loading...
Searching...
No Matches
utils::datetime::SteadyCoarseClock Struct Referencefinal

#include <userver/utils/datetime/steady_coarse_clock.hpp>

Detailed Description

Steady clock with up to a few millisecond resolution that is slightly faster than the std::chrono::steady_clock.

Definition at line 16 of file steady_coarse_clock.hpp.

Public Types

using duration = std::chrono::steady_clock::duration
 
using rep = duration::rep
 
using period = duration::period
 
using time_point = std::chrono::time_point<SteadyCoarseClock, duration>
 

Static Public Member Functions

static time_point now () noexcept
 
static duration resolution () noexcept
 

Static Public Attributes

static constexpr bool is_steady = true
 

Member Typedef Documentation

◆ duration

using utils::datetime::SteadyCoarseClock::duration = std::chrono::steady_clock::duration

Definition at line 18 of file steady_coarse_clock.hpp.

◆ period

using utils::datetime::SteadyCoarseClock::period = duration::period

Definition at line 20 of file steady_coarse_clock.hpp.

◆ rep

using utils::datetime::SteadyCoarseClock::rep = duration::rep

Definition at line 19 of file steady_coarse_clock.hpp.

◆ time_point

using utils::datetime::SteadyCoarseClock::time_point = std::chrono::time_point<SteadyCoarseClock, duration>

Definition at line 21 of file steady_coarse_clock.hpp.

Member Data Documentation

◆ is_steady

constexpr bool utils::datetime::SteadyCoarseClock::is_steady = true
staticconstexpr

Definition at line 23 of file steady_coarse_clock.hpp.


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