![]() |
RaidZeroLib
Coroutine robot framework for VEX V5
|
Fake clock for host tests: sleeping jumps time forward, so runs are instant and deterministic. More...
#include <SimulationPlatform.hpp>
Public Member Functions | |
| Time | now () const override |
| Monotonic time. | |
| void | sleepUntil (Time target) override |
| Blocks until now() >= time. Returns immediately if that time has passed. | |
| CompetitionMode | competitionMode () const override |
| The mode field control is in right now. | |
| void | setCompetitionMode (CompetitionMode newMode) |
| void | advance (Duration duration) |
| Advances the clock without sleeping, e.g. to simulate a slow tick. | |
| Public Member Functions inherited from rz::Platform | |
| virtual | ~Platform ()=default |
Fake clock for host tests: sleeping jumps time forward, so runs are instant and deterministic.
|
inline |
Advances the clock without sleeping, e.g. to simulate a slow tick.
|
inlinenodiscardoverridevirtual |
The mode field control is in right now.
Implements rz::Platform.
|
inlinenodiscardoverridevirtual |
Monotonic time.
Implements rz::Platform.
|
inline |
|
inlineoverridevirtual |
Blocks until now() >= time. Returns immediately if that time has passed.
Implements rz::Platform.