blob: fd2b64956cd64ab3d414ab897d96586df338bef5 [file] [log] [blame]
Jack Jansen0d1069e1996-09-22 22:15:20 +00001"""fgbgtest - See how many CPU cycles we get"""
2
3import time
4
5loopct = 0L
6oldloopct = 0L
7oldt = time.time()
8
9while 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