zephyr::time

Function sleep

source
pub fn sleep<T>(timeout: T) -> Duration
where T: Into<Timeout>,
Expand description

Put the current thread to sleep, for the given duration. Uses k_sleep for the actual sleep. Returns a duration roughly representing the remaining amount of time if the sleep was woken.