HistogramExt

Trait HistogramExt 

Source
pub trait HistogramExt {
    // Required method
    fn observe_between(&self, start: SystemTime, end: SystemTime);
}
Expand description

Extension trait for histograms.

Required Methods§

Source

fn observe_between(&self, start: SystemTime, end: SystemTime)

Observe the duration between two points in time, in seconds.

If the clock goes backwards, the duration is 0.

Implementations on Foreign Types§

Source§

impl HistogramExt for Histogram

Implementors§