rippled
|
A clock whose minimum resolution is one second. More...
Public Types | |
using | Clock = std::chrono::steady_clock |
using | rep = typename Clock::rep |
using | period = typename Clock::period |
using | duration = typename Clock::duration |
using | time_point = typename Clock::time_point |
Public Member Functions | |
basic_seconds_clock ()=default | |
Static Public Member Functions | |
static time_point | now () |
Static Public Attributes | |
static const bool | is_steady = Clock::is_steady |
A clock whose minimum resolution is one second.
The purpose of this class is to optimize the performance of the now() member function call. It uses a dedicated thread that wakes up at least once per second to sample the requested trivial clock.
Clock | A type meeting these requirements: http://en.cppreference.com/w/cpp/concept/Clock |
Definition at line 36 of file basic_seconds_clock.h.
Definition at line 39 of file basic_seconds_clock.h.
using beast::basic_seconds_clock::rep = typename Clock::rep |
Definition at line 43 of file basic_seconds_clock.h.
using beast::basic_seconds_clock::period = typename Clock::period |
Definition at line 44 of file basic_seconds_clock.h.
using beast::basic_seconds_clock::duration = typename Clock::duration |
Definition at line 45 of file basic_seconds_clock.h.
using beast::basic_seconds_clock::time_point = typename Clock::time_point |
Definition at line 46 of file basic_seconds_clock.h.
|
explicitdefault |
|
static |
Definition at line 100 of file basic_seconds_clock.cpp.
|
static |
Definition at line 48 of file basic_seconds_clock.h.