2 releases
Uses new Rust 2024
| 0.1.1 | Mar 1, 2025 |
|---|---|
| 0.1.0 | Dec 30, 2023 |
#515 in Date and time
153 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.5MB
~42K SLoC