Function time::register_early_sleeper
source · pub fn register_early_sleeper<T>(period: Period) -> boolwhere
T: EarlySleeper,Expand description
Register the clock source that can be used to sleep when interrupts are disabled.
The provided early sleeper will overwrite the current early sleeper only if
period is smaller than that of the current early sleeper.
Returns whether the early sleeper was overwritten.