Skip to main content

Module stop_watch

Module stop_watch 

Source
Expand description

§Stop-watch — elapsed duration against any TimeProvider

Constructed with an Arc<dyn TimeProvider>, records “now” at creation, and returns the delta since then on demand. Used wherever a piece of code needs “how long did this take” in a way that plays nicely with both real and virtual clocks — e.g. PoW progress reporting and cache decimation throttles.

Structs§

StopWatch