|
HardFOC Core
API reference
|
Controllable time source for hf-core host builds. More...
#include <cstdint>Go to the source code of this file.
Classes | |
| class | hf::host::FakeClock |
Namespaces | |
| namespace | hf |
| namespace | hf::host |
Controllable time source for hf-core host builds.
The host build defines HF_RTOS_NONE_EXTERNAL_CLOCK, so every clock read and delay in hf-utils-rtos-wrap (os_time_get, os_delay_msec, os_get_elapsed_time_msec, RtosTime::GetCurrentTimeUs, ...) lands here.
Tests call Reset() at the start of each case if they depend on absolute timestamps, and SetAutoAdvanceUs(0) for exact timing checks.