Make FPS counter suitable for other perf measurements

Such as game update and render duration.