Struct ethcore_util::PerfTimer
[−]
[src]
pub struct PerfTimer { /* fields omitted */ }
Performance timer with logging. Starts measuring time in the constructor, prints
elapsed time in the destructor or when stop
is called.
Methods
impl PerfTimer
[src]
fn new(name: &'static str) -> PerfTimer
Create an instance with given name.
fn stop(&mut self)
Stop the timer and print elapsed time on trace level with perf
target.