20#ifndef RIPPLE_TEST_CSF_TIMERS_H_INCLUDED
21#define RIPPLE_TEST_CSF_TIMERS_H_INCLUDED
23#include <test/csf/Scheduler.h>
24#include <test/csf/SimTime.h>
75 out_ <<
"Heartbeat. Time Elapsed: {sim: "
76 << duration_cast<seconds>(simDuration).count()
77 <<
"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.