Function maitake::time::set_global_timer

source ·
pub fn set_global_timer(timer: &'static Timer) -> Result<(), AlreadyInitialized>
Expand description

Sets a Timer as the global default timer.

This function must be called in order for the sleep and timeout free functions to be used.

The global timer can only be set a single time. Once the global timer is initialized, subsequent calls to this function will return an AlreadyInitialized error.