Skip to main content

Module time

Module time 

Source
Expand description

Time and delay utilities for oveRTOS.

Provides a monotonic microsecond timestamp (get_us) and busy-wait or scheduler-yielding delay functions (delay_ms, delay_us).

Structs§

Delay
Zero-sized handle used as the trait target for embedded_hal::delay::DelayNs (behind the embedded-hal feature).
Instant
Typed monotonic timestamp for try_*_until deadlines.

Functions§

delay_ms
Block the current thread for at least ms milliseconds.
delay_us
Block the current thread for at least us microseconds.
dur_ms_to_std
Convert a fugit DurationMs to the std Duration used by the rest of the binding.
dur_ns_to_std
Convert a fugit DurationNs to the std Duration used by the rest of the binding.
dur_us_from_std
Convert a Duration back to a fugit microsecond-resolution duration. Saturates at u64::MAX µs (~584 000 years).
dur_us_to_std
Convert a fugit DurationUs to the std Duration used by the rest of the binding.
get_us
Get the current monotonic time in microseconds since an arbitrary epoch.
get_us_unchecked
Like get_us but skips the error-mapping branch — the underlying ove_time_get_us is infallible on every supported backend’s hardware timer (the Result exists only to keep the API uniform with other ove fallible operations).
now_steady_ns
Get the current monotonic time in nanoseconds since an arbitrary epoch.

Type Aliases§

DurationMs
Millisecond-resolution duration — convenient for the common 200ms-style timeouts.
DurationNs
Nanosecond-resolution duration. Use when sub-µs precision matters (matches ove_time_get_ns).
DurationUs
Microsecond-resolution duration. Same precision as the substrate’s native uint64_t timeout_ns / 1000 representation.
InstantUs
Microsecond-resolution instant; pairs with DurationUs.