pub fn set_default(handle: &Handle) -> DefaultGuard
Expand description

Sets handle as the default timer, returning a guard that unsets it on drop.

Panics

This function panics if there already is a default timer set.