# Unity stats framerate vs Time.deltaTime

Googling around, a way for calculating framerate and displaying it as text ingame is using 1/Time.deltaTime. However, comparing this against unity stats FPS shows 2 different FPS. Which of it is incorrect? If 1/Time.deltaTime is incorrect, how does one go about calculating FPS?

Below is a screenshot of the FPS difference, as seen in the profiler, fps is well below 100 FPS whereas calculated FPS stays around 60.

1 / Time.deltaTime is the actual FPS that the whole Unity window (or the game after building and running) is running at.
Time.deltaTime is (as per the docs) The time in seconds it took to complete the last frame. Or rather, it can also be defined as the difference in Time.time (time since start at beginning of frame) in the last frame and the current frame.
Thus, when run in the editor, Time.deltaTime includes time taken in the editor to draw the scene view, inspector and other editor-only processing, whereas the delta time and FPS in the Stats window excludes this time.
Time.deltaTime minus the delta time shown in the Stats window is the time it took to process and render the Unity editor.