Struct benchman::BenchMan [−][src]
pub struct BenchMan { /* fields omitted */ }
Expand description
Benchman who collects the result from stopwatches.
use benchman::*;
let bm = BenchMan::new("bm_tag");
let sw = bm.get_stopwatch("sw_tag");
let mut sum = 0;
for i in 1..10 { sum += i; }
drop(sw);
eprintln!("{}", bm);
Implementations
Get a stopwatch from benchman.
Get an immutable view of the benchman.
If a tag in the list isn’t found in the current result, the tag is ignored.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for BenchMan
impl UnwindSafe for BenchMan
Blanket Implementations
Mutably borrows from an owned value. Read more