|
contur2
|
Abstract clock interface for simulation time. More...
#include <clock.h>

Public Member Functions | |
| virtual | ~IClock ()=default |
| virtual Tick | now () const noexcept=0 |
| Returns the current simulation tick. | |
| virtual void | tick ()=0 |
| Advances the simulation clock by one tick. | |
| virtual void | reset ()=0 |
| Resets the clock to tick 0. | |
Abstract clock interface for simulation time.
All subsystems reference time through this interface, allowing deterministic testing with mock clocks.
|
virtualdefault |
|
nodiscardpure virtualnoexcept |
Returns the current simulation tick.
Implemented in contur::SimulationClock.
|
pure virtual |
|
pure virtual |
Advances the simulation clock by one tick.
Implemented in contur::SimulationClock.