Calculate fps every 10 frames