Seastar
High performance C++ framework for concurrent servers
|
Low-resolution and efficient steady clock.
This is a monotonic clock with a granularity of ~task_quota. Time points from this clock do not correspond to system time.
The primary benefit of this clock is that invoking now()
is inexpensive compared to std::chrono::steady_clock::now()
.
lowres_system_clock
for a low-resolution clock which produces time points corresponding to system time. #include <seastar/core/lowres_clock.hh>
Public Types | |
using | rep = std::chrono::steady_clock::rep |
using | period = std::chrono::steady_clock::period |
using | duration = std::chrono::steady_clock::duration |
using | time_point = std::chrono::time_point< lowres_clock, duration > |
Static Public Member Functions | |
static time_point | now () noexcept |
static void | update () noexcept |
Static Public Attributes | |
static constexpr bool | is_steady = true |
|
inlinestaticnoexcept |