Struct prometheus::local::LocalHistogramTimer
[−]
[src]
pub struct LocalHistogramTimer { /* fields omitted */ }
Methods
impl LocalHistogramTimer
[src]
LocalHistogramTimer
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).
fn observe_duration(self)
[src]
observe_duration
observes the amount of time in seconds since
LocalHistogram.start_timer
was called.