axhal::time

Function set_oneshot_timer

Source
pub fn set_oneshot_timer(deadline_ns: u64)
Available on crate feature irq only.
Expand description

Set a one-shot timer.

A timer interrupt will be triggered at the specified monotonic time deadline (in nanoseconds).