How do I detect FPS?

If I wanted to print my FPS on my HUD, how would I get that?

I already looked around but I had no luck.

Thanks in advance.


Thanks, I did realize it would be called FrameTime. I was looking for something with FPS in the name.