tokio_timer::clock

Function 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.