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]

[src]

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

Trait Implementations

impl Drop for HistogramTimer
[src]

[src]

Executes the destructor for this type. Read more