Exemplo n.º 1
0
 def wait(self):
     timing.busywait(1000)
Exemplo n.º 2
0
 def testTiming(self):
     timer = timing.Timer('busywait', self.logger)
     timer.start()
     timing.busywait(1000)
     timer.stop()
     self.logger.info('plain timing took %s seconds', timer.dt)
Exemplo n.º 3
0
 def testTiming(self):
     timer = timing.Timer('busywait', self.logger)
     timer.start()
     timing.busywait(1000)
     timer.stop()
     self.logger.info('plain timing took %s seconds', timer.dt)
Exemplo n.º 4
0
 def testTimingContext(self):
     with timing.Timer('busywait', self.logger):
         timing.busywait(100)
     with timing.Timer('defaultlog'):
         timing.busywait(100)
Exemplo n.º 5
0
 def wait(self):
     timing.busywait(1000)
Exemplo n.º 6
0
 def testTimingContext(self):
     with timing.Timer('busywait', self.logger):
         timing.busywait(100)
     with timing.Timer('defaultlog'):
         timing.busywait(100)
Exemplo n.º 7
0
 def testTimingContext(self):
     with timing.Timer('busywait', self.logger.info):
         timing.busywait(1000)
Exemplo n.º 8
0
 def wait():
     timing.busywait(1000)
Exemplo n.º 9
0
 def testTimingContext(self):
     with timing.Timer('busywait', self.logger.info):
         timing.busywait(1000)