Commit f154a592 authored by Jack Jansen's avatar Jack Jansen

Finally *tested* effect of fg and bg yield values (and changed them:-)

parent d24cc6aa
"""fgbgtest - See how many CPU cycles we get"""
import time
loopct = 0L
oldloopct = 0L
oldt = time.time()
while 1:
t = time.time()
if t - oldt >= 1:
if oldloopct:
print loopct-oldloopct,'in one second'
oldloopct = loopct
oldt = time.time()
loopct = loopct + 1
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment