TimeSw

Type Alias TimeSw 

Source
pub type TimeSw = Stopwatch<Instant>;
👎Deprecated: the time crate has deprecated time::Instant in favor of the time::ext::InstantExt trait used with std::time::Instant
Available on crate feature time only.
Expand description

Alias to Stopwatch using the time crate’s Instant type.

Aliased Type§

pub struct TimeSw {
    pub elapsed: Duration,
    pub start: Option<Instant>,
}

Fields§

§elapsed: Duration

Accumulated elapsed time.

§start: Option<Instant>

The instant at which the stopwatch was started, if it is running. Otherwise, None.