Struct prometheus::HistogramTimer
[−]
[src]
pub struct HistogramTimer { /* fields omitted */ }
HistogramTimer
represents an event being timed. When the timer goes out of
scope, the duration will be observed, or call observe_duration
to manually
observe.
NOTICE: A timer can be observed only once (automatically or manually).
Methods
impl HistogramTimer
[src]
fn observe_duration(self)
[src]
observe_duration
observes the amount of time in seconds since
Histogram.start_timer
was called.