Get player FPS?

how would I go about getting a player’s fps (to display on a HUD)?

FrameTime() gives you the time it took to render the last frame.

So just divide 1 by that and you will get the time taken in 1 second.

ok, thank you