Sets the fake clock, in µs.
(&self, us: u64)
| 29 | |
| 30 | /// Sets the fake clock, in µs. |
| 31 | fn at(&self, us: u64) { |
| 32 | self.clock.store(us * 1000, Relaxed); |
| 33 | } |
| 34 | |
| 35 | fn on_thread<T: Send>(&self, name: &str, f: impl FnOnce() -> T + Send) -> T { |
| 36 | std::thread::scope(|s| { |
no test coverage detected