1 unstable release

0.1.0 Dec 30, 2023

#317 in Date and time

Unlicense

4KB
64 lines

Chronograf

A stopwatch library. Yeah, there are a thousand, and there's something I hate about all of them.

fn main() {
    let sw = chronograf::start();
    let sum: u64 = (0..=1_000_000).filter(|&n| is_prime(n)).sum();
    let elapsed = sw.finish();
    println!("{sum} / {elapsed:?}");
}

Code of Conduct

All conversations and contributions to this project shall adhere to the Code of Conduct.

Dependencies

~0.8–2.4MB
~42K SLoC