pub struct SysTimer { /* private fields */ }
Expand description

A periodic timer based on std::time::Instant, which is a monotonically nondecreasing clock.

Implementations

Create a new timer instance.

The duration will be initialized to 0, so make sure to call start with your desired timer duration before calling wait.

Trait Implementations

An enumeration of CountDown errors. Read more

The unit of time used by this timer

Starts a new count down

Non-blockingly “waits” until the count down finishes Read more

Returns the “default value” for a type. Read more

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.