Skip to main content

hashiverse_lib/tools/time_provider/
mod.rs

1//! # Clock abstraction and test utilities
2//!
3//! The `TimeProvider` trait lets every component read "now" through a common
4//! interface, which in turn lets tests swap in a virtual clock that can jump
5//! forward on demand. A stop-watch helper computes elapsed durations on top of
6//! whichever clock is in use.
7
8pub mod time_provider;
9
10#[cfg(not(target_arch = "wasm32"))]
11pub mod manual_time_provider;
12pub mod stop_watch;
13
14