Lines Matching refs:Timer
12 class Timer:
63 timer = Timer()
64 scheduler = sched.scheduler(timer.time, timer.sleep)
69 timer.advance(1)
74 timer.advance(2)
78 timer.advance(1)
81 timer.advance(1)
84 timer.advance(1000)
87 self.assertEqual(timer.time(), 5)
116 timer = Timer()
117 scheduler = sched.scheduler(timer.time, timer.sleep)
118 now = timer.time()
126 timer.advance(1)
131 timer.advance(1)
133 timer.advance(1)
136 timer.advance(1)
139 timer.advance(1000)
142 self.assertEqual(timer.time(), 4)