| Crates.io | cpu_timer |
| lib.rs | cpu_timer |
| version | 0.1.1 |
| created_at | 2025-01-28 14:27:25.935141+00 |
| updated_at | 2025-02-04 11:20:14.622969+00 |
| description | Precise CPU timers with backup to std::time, for in-library timing |
| homepage | https://github.com/atthecodeface/cpu_timer_rs |
| repository | https://github.com/atthecodeface/cpu_timer_rs |
| max_upload_size | |
| id | 1533542 |
| size | 55,265 |
A library to support timing execution of code using a high precision, low overhead CPU clock tick, with a fallback to std::time where the CPU architecture does not support a high precision timer.
This provides a suite of timer types, from simple elapsed-ticks, through various accumulation and occurrence counted elapsed timers, and traces.
Add this to your Cargo.toml:
[dependencies]
cpu-timer = "0.1.0"
Release notes are available in RELEASES.md.
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.