Seastar
High performance C++ framework for concurrent servers
|
Low-resolution and efficient system clock.
This clock has the same granularity as lowres_clock
, but it is not required to be monotonic and its time points correspond to system time.
The primary benefit of this clock is that invoking now()
is inexpensive compared to std::chrono::system_clock::now()
.
#include <seastar/core/lowres_clock.hh>
Public Types | |
using | rep = std::chrono::system_clock::rep |
using | period = std::chrono::system_clock::period |
using | duration = std::chrono::system_clock::duration |
using | time_point = std::chrono::time_point< lowres_system_clock, duration > |
Static Public Member Functions | |
static time_point | now () noexcept |
static std::time_t | to_time_t (time_point t) noexcept |
static time_point | from_time_t (std::time_t t) noexcept |
Static Public Attributes | |
static constexpr bool | is_steady = false |
|
inlinestaticnoexcept |