[−][src]Function tokio_timer::clock::set_default
pub fn set_default(clock: &Clock) -> DefaultGuard
Sets clock
as the default clock, returning a guard that unsets it on drop.
Panics
This function panics if there already is a default clock set.