Expand description
The clock components should read instead of Instant::now(), so a harness can move it.
Without the control feature these are the real clock. With it, a harness installs its
virtual clock once per process, and each call answers for the thread that makes it.
Functions§
- now
- The current instant: the harness’s virtual instant under a harness, the real one otherwise.
- real_
timer - Declares that
componentruns a timer on the real clock, such as a ticker thread. A harness refuses the step that creates it, because its ticks would depend on real time. Outside a harness it does nothing. - system_
now - The current wall-clock time: the harness’s virtual wall clock under a harness, the real one otherwise.