2000-06-29 19:35:29 +00:00
|
|
|
from test_support import verbose
|
|
|
|
import timing
|
1996-12-10 16:02:14 +00:00
|
|
|
|
2000-06-29 19:35:29 +00:00
|
|
|
r = range(100000)
|
|
|
|
if verbose:
|
|
|
|
print 'starting...'
|
|
|
|
timing.start()
|
|
|
|
for i in r:
|
1996-12-10 16:02:14 +00:00
|
|
|
pass
|
2000-06-29 19:35:29 +00:00
|
|
|
timing.finish()
|
|
|
|
if verbose:
|
|
|
|
print 'finished'
|
1996-12-10 16:02:14 +00:00
|
|
|
|
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
|