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.
Auto Trait Implementations
impl<'a, T> Send for ElapsedTimer<'a, T> where
T: Sync,
impl<'a, T> Sync for ElapsedTimer<'a, T> where
T: Sync,
impl<'a, T> Unpin for ElapsedTimer<'a, T>