Expand description
§Clock abstraction and test utilities
The TimeProvider trait lets every component read “now” through a common
interface, which in turn lets tests swap in a virtual clock that can jump
forward on demand. A stop-watch helper computes elapsed durations on top of
whichever clock is in use.
Modules§
- manual_
time_ provider - Virtual clock for deterministic tests
- stop_
watch - Stop-watch — elapsed duration against any
TimeProvider - time_
provider TimeProvidertrait — the clock seam