Crates.io | cpu-time |
lib.rs | cpu-time |
version | 1.0.0 |
source | src |
created_at | 2018-08-23 14:55:17.769217 |
updated_at | 2019-10-27 22:41:49.171117 |
description | Small crate that provides CPU time measurement. |
homepage | https://github.com/tailhook/cpu-time |
repository | |
max_upload_size | |
id | 80902 |
size | 30,452 |
Documentation | Github | Crate
A simple and idiomatic interface for measurement CPU time:
let start = ProcessTime::now();
# .. do something ..
let cpu_time: Duration = start.elapsed();
println!(" {:?}");
Licensed under either of
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.