Struct simple_clock::ElapsedTimer[][src]

pub struct ElapsedTimer<'a, T> { /* fields omitted */ }
Expand description

Provides an easy way to calculate elapsed times.

This timer is usually used to compute how much time is elapsed between two events or to determine the event’s deadline in case of polling.

Implementations

Creates a new elapsed timer instance backed by the specified clock implementation.

Restarts the timer and returns the number of microseconds elapsed since this timer was started.

Returns the number of microseconds elapsed since this timer was started.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.