pub trait HistogramExt {
// Required method
fn observe_between(&self, start: SystemTime, end: SystemTime);
}
Expand description
Extension trait for histograms.
Required Methods§
Sourcefn observe_between(&self, start: SystemTime, end: SystemTime)
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.