repo.or.cz
/
python
/
dscho.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Move setting of ioready 'wait' earlier in call chain, to
[python/dscho.git]
/
Mac
/
Lib
/
test
/
fgbgtimetest.py
blob
fd2b64956cd64ab3d414ab897d96586df338bef5
1
"""fgbgtest - See how many CPU cycles we get"""
2
3
import
time
4
5
loopct
=
0L
6
oldloopct
=
0L
7
oldt
=
time
.
time
()
8
9
while
1
:
10
t
=
time
.
time
()
11
if
t
-
oldt
>=
1
:
12
if
oldloopct
:
13
print
loopct
-
oldloopct
,
'in one second'
14
oldloopct
=
loopct
15
oldt
=
time
.
time
()
16
loopct
=
loopct
+
1
17