| Crates.io | thread-time |
| lib.rs | thread-time |
| version | 1.0.0 |
| created_at | 2022-02-16 19:30:42.933863+00 |
| updated_at | 2022-02-16 19:30:42.933863+00 |
| description | Small crate that provides CPU time measurement for threads. |
| homepage | https://github.com/hamptonmoore/thread-time |
| repository | |
| max_upload_size | |
| id | 533502 |
| size | 6,418 |
Documentation | Github | Crate
A simple and idiomatic interface for measurement thread CPU time:
let start = ThreadTime::new();
# .. do something ..
let cpu_time: Duration = start.elapsed();
println!(" {:?}");
It's purpose is to be a Send safe version of the cpu-time package, but focusing solely on measuring thread time and linux support.