2 releases
Uses new Rust 2024
0.1.1 | Mar 1, 2025 |
---|---|
0.1.0 | Dec 30, 2023 |
#187 in Date and time
169 downloads per month
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