Exemple #1
0
 def wait(self):
     timing.busywait(1000)
Exemple #2
0
 def testTiming(self):
     timer = timing.Timer('busywait', self.logger.info)
     timer.start()
     timing.busywait(1000)
     timer.stop()
     self.logger.info('plain timing took %s seconds', timer.dt)
Exemple #3
0
 def testTimingContext(self):
     with timing.Timer('busywait', self.logger.info):
         timing.busywait(1000)