pub fn timer<T>(&self, id: T) -> Arc<Timer>
    where
        T: Into<MetricId>,
    {
        self.timer_with(id, || {
            Timer::new_with(
                ExponentiallyDecayingReservoir::new_with(self.clock.clone()),
                self.clock.clone(),
            )
        })
    }
/// Returns the timer with the specified ID, creating a default instance if absent.
///
/// # Panics
///
/// Panics if a metric is registered with the ID that is not a timer.
Returns the timer with the specified ID, creating a default instance if absent.
Returns the timer with the specified ID creating a default instance if absent .
pub fn timer<T>(&self, id: T) -> Arc<Timer>
    where
        T: Into<MetricId>,
    {
        self.timer_with(id, || {
            Timer::new_with(
                ExponentiallyDecayingReservoir::new_with(self.clock.clone()),
                self.clock.clone(),
            )
        })
    }
pub fn timer < T > ( & self , id : T ) -> Arc < Timer > where T : Into < MetricId > , { self . timer_with ( id , | | { Timer :: new_with ( ExponentiallyDecayingReservoir :: new_with ( self . clock . clone ( ) ) , self . clock . clone ( ) , ) } ) }
Returns the timer with the specified ID, creating a default instance if absent.
Returns the timer with the specified ID creating a default instance if absent .
&self
id
T
&self
id
T
panics
Panics if a metric is registered with the ID that is not a timer.
Panics if a metric is registered with the ID that is not a timer .