No, akr, that won't work.
frame is just the number of the current frame and it grows all the time.
To get the fps, one has to use real_fps
@DollMaster: You can use the akr's code, but change frame to real_fps
And to change fps, go to game properties and there you can see a number which is 30 by default. You can change it to anything.