2 releases

Uses new Rust 2024

0.1.1 Mar 1, 2025
0.1.0 Dec 30, 2023

#187 in Date and time

Download history 4/week @ 2024-12-08 1/week @ 2024-12-15 3/week @ 2025-02-02 63/week @ 2025-02-23 106/week @ 2025-03-02

169 downloads per month

Unlicense

5KB
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.6MB
~44K SLoC