Searched refs:Clock (Results 1 – 2 of 2) sorted by relevance
25 pub struct Clock(Cell<Instant>); struct27 impl Clock { implementation28 pub fn new() -> Clock { in new()29 Clock(Cell::new(Instant::from_millis(0))) in new()51 pub struct Clock(Arc<AtomicUsize>); struct53 impl Clock { impl54 pub fn new() -> Clock { in new()55 Clock(Arc::new(AtomicUsize::new(0))) in new()70 let clock = mock::Clock::new(); in main()
22 pub struct Clock(Arc<AtomicUsize>); struct24 impl Clock { implementation25 pub fn new() -> Clock { in new()26 Clock(Arc::new(AtomicUsize::new(0))) in new()115 let clock = mock::Clock::new();