3#include <test/csf/Scheduler.h>
4#include <test/csf/SimTime.h>
52 out_ <<
"Heartbeat. Time Elapsed: {sim: " << duration_cast<seconds>(simDuration).count()
53 <<
"s | real: " << duration_cast<seconds>(realDuration).count() <<
"s}\n"
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.
cancel_token in(duration const &delay, Function &&f)
Schedule an event after a specified duration passes.
time_point now() const
Return the current network time.
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.