hrstopwatch 0.1.0

A high accuracy stopwatch, intended for benchmarking.
Documentation

High Resolution Stopwatch

GitHub crates.io badge Docs.rs rustc requirements

An extremely accurate clock for taking measurements of the length of time between it starting and stopping. Includes the capability to pause and resume. Inspired by https://github.com/moritzrinow/winwatch. Windows Only.

Usage

use hrstopwatch::Stopwatch;

let mut num: u64 = 0;
let mut stopwatch = Stopwatch::start()?;
for i in 0..10000 {
	num += i;
}
stopwatch.stop()?;
println!("seconds to calculate: {}", stopwatch.elapsed_seconds_f64());