cpython/Lib/dos-8x3/test_tim.py

22 lines
354 B
Python
Raw Normal View History

2000-06-29 19:35:29 +00:00
from test_support import verbose
import timing
2000-06-29 19:35:29 +00:00
r = range(100000)
if verbose:
print 'starting...'
timing.start()
for i in r:
pass
2000-06-29 19:35:29 +00:00
timing.finish()
if verbose:
print 'finished'
2000-06-29 19:35:29 +00:00
secs = timing.seconds()
milli = timing.milli()
micro = timing.micro()
if verbose:
print 'seconds:', secs
print 'milli :', milli
print 'micro :', micro