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]

Create an instance with given name.

Stop the timer and print elapsed time on trace level with perf target.

Trait Implementations

impl Drop for PerfTimer
[src]

A method called when the value goes out of scope. Read more