xrpld
Loading...
Searching...
No Matches
xrpl::test::csf::HeartbeatTimer Class Reference

Gives heartbeat of simulation to signal simulation progression. More...

#include <timers.h>

Collaboration diagram for xrpl::test::csf::HeartbeatTimer:

Public Member Functions

 HeartbeatTimer (Scheduler &sched, SimDuration interval=std::chrono::seconds{60}, std::ostream &out=std::cerr)
void start ()
void beat (SimTime when)

Private Attributes

Schedulerscheduler_
SimDuration interval_
std::ostreamout_
RealTime startRealTime_
SimTime startSimTime_

Detailed Description

Gives heartbeat of simulation to signal simulation progression.

Definition at line 16 of file timers.h.

Constructor & Destructor Documentation

◆ HeartbeatTimer()

xrpl::test::csf::HeartbeatTimer::HeartbeatTimer ( Scheduler & sched,
SimDuration interval = std::chrono::seconds{60},
std::ostream & out = std::cerr )

Definition at line 26 of file timers.h.

Member Function Documentation

◆ start()

void xrpl::test::csf::HeartbeatTimer::start ( )

Definition at line 39 of file timers.h.

◆ beat()

void xrpl::test::csf::HeartbeatTimer::beat ( SimTime when)

Definition at line 45 of file timers.h.

Member Data Documentation

◆ scheduler_

Scheduler& xrpl::test::csf::HeartbeatTimer::scheduler_
private

Definition at line 18 of file timers.h.

◆ interval_

SimDuration xrpl::test::csf::HeartbeatTimer::interval_
private

Definition at line 19 of file timers.h.

◆ out_

std::ostream& xrpl::test::csf::HeartbeatTimer::out_
private

Definition at line 20 of file timers.h.

◆ startRealTime_

RealTime xrpl::test::csf::HeartbeatTimer::startRealTime_
private

Definition at line 22 of file timers.h.

◆ startSimTime_

SimTime xrpl::test::csf::HeartbeatTimer::startSimTime_
private

Definition at line 23 of file timers.h.