Crates.io | chronograf |
lib.rs | chronograf |
version | 0.1.0 |
source | src |
created_at | 2023-12-30 02:31:16.442251 |
updated_at | 2023-12-30 02:31:16.442251 |
description | A stopwatch. |
homepage | |
repository | https://github.com/archer884/chronograf |
max_upload_size | |
id | 1083851 |
size | 5,215 |
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:?}");
}
All conversations and contributions to this project shall adhere to the Code of Conduct.