20 #include <test/jtx/ManualTimeKeeper.h>
25 using namespace std::chrono_literals;
55 auto const s = amount.
count();
91 return time_point(std::chrono::duration_cast<duration>(
92 when.time_since_epoch() -
days(10957)));
void run(std::vector< std::string > const &servers) override
Launch the internal thread.
time_point closeTime() const override
Returns the close time, in network time.
std::chrono::duration< std::int32_t > nowOffset() const override
std::chrono::duration< std::int32_t > closeOffset() const override
static time_point adjust(std::chrono::system_clock::time_point when)
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
void adjustCloseTime(std::chrono::duration< std::int32_t > amount) override
Adjust the close time.
time_point now() const override
Returns the estimate of wall time, in network time.
typename NetClock ::time_point time_point
std::chrono::duration< std::int32_t > closeOffset_