Function rasi_syscall::global_timer

source ·
pub fn global_timer() -> &'static dyn Timer
Available on crate feature time only.
Expand description

Get the globally registered instance of Timer.

§Panic

You should call register_global_timer first to register implementation, otherwise this function will cause a panic with Call register_global_timer first