def test_performance():
 clock = task.Clock()
 call = task.LoopingCall((lambda : None))
 call.clock = clock
 call.start(0.1)
 clock.advance(1000000)

def test_performance ( ) : clock = task . Clock ( ) call = task . LoopingCall ( ( lambda : None ) ) call . clock = clock call . start ( 0.1 ) clock . advance ( 1000000 )
l{loopingcall} should not take long to skip a lot of iterations .