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