repo.or.cz
/
python.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Exceptions raised during renaming in rotating file handlers are now passed to handleE...
[python.git]
/
Lib
/
test
/
test_timing.py
blob
5797833fc79d0e31ee360647778d7d9d9a65219b
1
from
test
.
test_support
import
verbose
2
import
timing
3
4
r
=
range
(
100000
)
5
if
verbose
:
6
print
'starting...'
7
timing
.
start
()
8
for
i
in
r
:
9
pass
10
timing
.
finish
()
11
if
verbose
:
12
print
'finished'
13
14
secs
=
timing
.
seconds
()
15
milli
=
timing
.
milli
()
16
micro
=
timing
.
micro
()
17
18
if
verbose
:
19
print
'seconds:'
,
secs
20
print
'milli :'
,
milli
21
print
'micro :'
,
micro