|
SatCat5
|
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>
Public Member Functions | |
| satcat5::util::TimeRef * | get_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::Callback > | m_callbacks |
| Linked list of registered callback objects. | |