コード例 #1
0
 def test_reset(self):
     watch = StopWatch()
     time.sleep(0.1)
     watch.reset()
     self.assertLess(watch.get(), 0.001)
コード例 #2
0
 def test_reset(self):
     watch = StopWatch()
     time.sleep(0.1)
     watch.reset()
     self.assertLess(watch.get(), 0.001)