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.
pub fn set_default(clock: &Clock) -> DefaultGuard
Sets clock
as the default clock, returning a guard that unsets it on drop.
This function panics if there already is a default clock set.