thread-time

Crates.iothread-time
lib.rsthread-time
version1.0.0
sourcesrc
created_at2022-02-16 19:30:42.933863
updated_at2022-02-16 19:30:42.933863
description Small crate that provides CPU time measurement for threads.
homepagehttps://github.com/hamptonmoore/thread-time
repository
max_upload_size
id533502
size6,418
Hampton (hamptonmoore)

documentation

https://docs.rs/thread-time

README

Thread Time Measurement Library

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.

Commit count: 0

cargo fmt