Lines Matching refs:clock
43 fn clock() -> Option<Clock> {
44 crate::runtime::context::clock()
49 fn clock() -> Option<Clock> {
89 let clock = clock().expect("time cannot be frozen from outside the Tokio runtime"); localVariable
90 clock.pause();
103 let clock = clock().expect("time cannot be frozen from outside the Tokio runtime"); localVariable
104 let mut inner = clock.inner.lock().unwrap();
126 let clock = clock().expect("time cannot be frozen from outside the Tokio runtime"); localVariable
127 clock.advance(duration);
143 if let Some(clock) = clock() {
144 clock.now()
156 let clock = Clock { localVariable
165 clock.pause();
168 clock