20 #ifndef BEAST_CHRONO_BASIC_SECONDS_CLOCK_H_INCLUDED
21 #define BEAST_CHRONO_BASIC_SECONDS_CLOCK_H_INCLUDED
23 #include <date/date.h>
39 virtual void sample () = 0;
113 clock_type::time_point
const when (
114 date::floor <seconds> (
157 template <
class Clock>
163 using rep =
typename Clock::rep;
168 static bool const is_steady = Clock::is_steady;
182 static initializer
init;
190 : m_now(Clock::now())
206 void sample()
override
209 m_now = Clock::now();
void basic_seconds_clock_main_hook()
Called before main exits to terminate the utility thread.
void add(seconds_clock_worker &w)
seconds_clock_worker & operator=(seconds_clock_worker const &)=delete
typename Clock::duration duration
A clock whose minimum resolution is one second.
void remove(seconds_clock_worker &w)
typename Clock::period period
void init(ripemd160_context &ctx) noexcept
static seconds_clock_thread & instance()
seconds_clock_worker()=default
virtual ~seconds_clock_worker()=default
typename Clock::time_point time_point