Skip to main content

Module time_provider

Module time_provider 

Source
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
TimeProvider trait — the clock seam