Calculating FPS (using timer signal)