stopwatch
A small stopwatch library written in Rust.
Usage
use Duration;use Stopwatch;let mut stopwatch = new;stopwatch.start;// Do a long running tasksleep;stopwatch.stop;println!;
Installation
cargo add --git https://git.holly.sh/stopwatch.git
Why does this exist?
While there is the rust-stopwatch crate, I didn't like that a simple stopwatch crate had a dependency on num, which has other dependencies.
This is done in pure Rust.