Function time::register_clock_source
source · pub fn register_clock_source<T>(period: Period) -> boolwhere
T: ClockSource,Expand description
Register a clock source.
The provided clock source will overwrite the current clock source only if
period is smaller than that of the current clock source.
Returns whether the clock source was overwritten.