Function tokio_timer::clock::set_default
source · [−]pub fn set_default(clock: &Clock) -> DefaultGuard
Expand description
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.