Might be good to add a comment above this to explain that this method will update the FPS estimate once every second (at most). I could see wanting different estimates (smoothed over time potentially) in the long run, so it'll help later by being a little bit more explicit here, even though this is fairly simple.