Struct linux_embedded_hal::SysTimer[][src]

pub struct SysTimer { /* fields omitted */ }
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

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

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.