#[must_use = "Timer should be kept in a variable otherwise it cannot observe duration"]
pub struct HistogramTimer { /* fields omitted */ }
A struct 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).
observe_duration
observes the amount of time in seconds since
Histogram.start_timer
was called.
Executes the destructor for this type. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)