chronograf

Crates.iochronograf
lib.rschronograf
version0.1.0
sourcesrc
created_at2023-12-30 02:31:16.442251
updated_at2023-12-30 02:31:16.442251
descriptionA stopwatch.
homepage
repositoryhttps://github.com/archer884/chronograf
max_upload_size
id1083851
size5,215
J/A (archer884)

documentation

README

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.

Commit count: 4

cargo fmt