pub fn set_clock(c: Rc<RefCell<dyn Clock>>)
Panics if setting the global clock fails or it is already set.