PyXR

c:\python24\lib \ test \ test_timing.py



0001 from test.test_support import verbose
0002 import timing
0003 
0004 r = range(100000)
0005 if verbose:
0006     print 'starting...'
0007 timing.start()
0008 for i in r:
0009     pass
0010 timing.finish()
0011 if verbose:
0012     print 'finished'
0013 
0014 secs = timing.seconds()
0015 milli = timing.milli()
0016 micro = timing.micro()
0017 
0018 if verbose:
0019     print 'seconds:', secs
0020     print 'milli  :', milli
0021     print 'micro  :', micro
0022 

Generated by PyXR 0.9.4
SourceForge.net Logo