SatCat5
satcat5::ptp::SimulatedTimer Class Reference

Detailed Description

Helper object for tracking simulation time.

This allows access to the util::TimeRef API but mimics the syntax of the SimulatedClock::run method.

Definition at line 78 of file ptp_simclock.h.

#include <ptp_simclock.h>

Inheritance diagram for satcat5::ptp::SimulatedTimer:
[legend]
Collaboration diagram for satcat5::ptp::SimulatedTimer:
[legend]

Public Member Functions

satcat5::util::TimeRefget_timer ()
 Accessor for a SatCat5 coarse timer.
 
void run (const satcat5::ptp::Time &dt)
 Advance simulation by X seconds.
 
void add_callback (satcat5::ptp::Callback *callback)
 
void remove_callback (satcat5::ptp::Callback *callback)
 

Protected Member Functions

void notify_callbacks (const satcat5::ptp::Measurement &meas)
 Notify all Callback objects of a new Measurement.
 

Protected Attributes

u32 m_treg
 
satcat5::util::TimeRegister m_timer
 
satcat5::util::List< satcat5::ptp::Callbackm_callbacks
 Linked list of registered callback objects.
 

The documentation for this class was generated from the following files: