Crate measure_time [−] [src]
This is documentation for the measure_time
crate.
The macros measures the time until end of scope
This is done by creating an object, which measures the time. The time is printed when the object is dropped.
Examples
#[macro_use] extern crate measure_time; fn main() { info_time!("measure function"); { debug_time!(format!("{:?}", "measuring block")); let mut sum = 0; for el in 0..50000 { sum+=el; } println!("{:?}", sum); } trace_time!(format!("{:?}", "yep")); print_time!("yep2"); }
Macros
debug_time | |
info_time | |
print_time | |
trace_time |
Structs
MeasureTime |
Enums
MeasureTimeLogLevel |