Timer

Trait Timer 

Source
pub trait Timer: Send {
    // Required method
    fn stop(self: Box<Self>);
}
Expand description

Timer interface returned by Metrics::start_timer.

Required Methods§

Source

fn stop(self: Box<Self>)

Stop the timer and record the duration.

Implementors§