cpu_timer

Crates.iocpu_timer
lib.rscpu_timer
version0.1.1
created_at2025-01-28 14:27:25.935141+00
updated_at2025-02-04 11:20:14.622969+00
descriptionPrecise CPU timers with backup to std::time, for in-library timing
homepagehttps://github.com/atthecodeface/cpu_timer_rs
repositoryhttps://github.com/atthecodeface/cpu_timer_rs
max_upload_size
id1533542
size55,265
Gavin J Stark (atthecodeface)

documentation

https://docs.rs/cpu_timer

README

cpu_timer

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.

Usage

Add this to your Cargo.toml:

[dependencies]
cpu-timer = "0.1.0"

Releases

Release notes are available in RELEASES.md.

License

Licensed under either of

at your option.

Contribution

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.

Commit count: 7

cargo fmt