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).


impl HistogramTimer


observe_duration observes the amount of time in seconds since Histogram.start_timer was called.

Trait Implementations

impl Drop for HistogramTimer


Executes the destructor for this type. Read more