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

[src]

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

Trait Implementations

impl Drop for LocalHistogramTimer
[src]

[src]

Executes the destructor for this type. Read more