pub fn set_global_clock(c: Rc<RefCell<dyn Clock>>)
Panics if thread-local storage cannot be accessed or the global clock is already set.