Add FPS counter

This commit is contained in:
iabdalkader 2014-03-22 19:42:36 +02:00
parent 03d99e2a1b
commit fa541c6ecd

9
usr/examples/fps.py Normal file
View File

@ -0,0 +1,9 @@
import sensor, imlib, time
clock = time.clock()
while (True):
clock.tick()
# take snapshot
image = sensor.snapshot()
print (clock.fps())