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::InstantAvailable on crate feature
time only.Aliased Type§
pub struct TimeSw {
pub elapsed: Duration,
pub start: Option<Instant>,
}Fields§
§elapsed: DurationAccumulated elapsed time.
start: Option<Instant>The instant at which the stopwatch was started, if it is running.
Otherwise, None.