Improve accuracy of frame rate calculation.