Crate hrsw

Source
Expand description

Simple stopwatch implementation that can be used for high resolution time measurement.

§Example

use hrsw::Stopwatch;

let mut stopwatch = Stopwatch::new();
stopwatch.start();
// do something and get the elapsed time
let elapsed = stopwatch.elapsed();
// do something other and get the total elapsed time
stopwatch.stop();
let total_elapsed = stopwatch.elapsed();

Structs§