pub unsafe extern "C" fn k_msleep(ms: i32) -> i32
Expand description
@brief Put the current thread to sleep.
This routine puts the current thread to sleep for @a duration milliseconds.
@param ms Number of milliseconds to sleep.
@return Zero if the requested time has elapsed or if the thread was woken up by the \ref k_wakeup call, the time left to sleep rounded up to the nearest millisecond.