1#ifndef XRPL_TEST_CSF_TIMERS_H_INCLUDED
2#define XRPL_TEST_CSF_TIMERS_H_INCLUDED
4#include <test/csf/Scheduler.h>
5#include <test/csf/SimTime.h>
56 out_ <<
"Heartbeat. Time Elapsed: {sim: "
57 << duration_cast<seconds>(simDuration).count()
58 <<
"s | real: " << duration_cast<seconds>(realDuration).count()
Gives heartbeat of simulation to signal simulation progression.
HeartbeatTimer(Scheduler &sched, SimDuration interval=std::chrono::seconds{60}, std::ostream &out=std::cerr)
Simulated discrete-event scheduler.
time_point now() const
Return the current network time.
cancel_token in(duration const &delay, Function &&f)
Schedule an event after a specified duration passes.
typename SimClock::duration SimDuration
RealClock::time_point RealTime
typename SimClock::time_point SimTime
RealClock::duration RealDuration
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.