20 #ifndef RIPPLE_CORE_TIMEKEEPER_H_INCLUDED
21 #define RIPPLE_CORE_TIMEKEEPER_H_INCLUDED
23 #include <ripple/basics/chrono.h>
24 #include <ripple/beast/clock/abstract_clock.h>
25 #include <ripple/beast/utility/Journal.h>
58 now()
const override = 0;
virtual std::chrono::duration< std::int32_t > nowOffset() const =0
virtual void adjustCloseTime(std::chrono::duration< std::int32_t > amount)=0
Adjust the close time.
virtual void run(std::vector< std::string > const &servers)=0
Launch the internal thread.
virtual time_point closeTime() const =0
Returns the close time, in network time.
A generic endpoint for log messages.
Manages various times used by the server.
Abstract interface to a clock.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
virtual ~TimeKeeper()=default
std::unique_ptr< TimeKeeper > make_TimeKeeper(beast::Journal j)
virtual time_point now() const override=0
Returns the estimate of wall time, in network time.
typename NetClock ::time_point time_point
virtual std::chrono::duration< std::int32_t > closeOffset() const =0