# High Resolution Stopwatch
[](https://github.com/Starz0r/hrstopwatch) [](https://crates.io/hrstopwatch) [](https://docs.rs/hrstopwatch/latest) 
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
```rust
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());
```