MV How do you get the current frame rate?

When pressing f2, you can get a little popup that shows the game's fps, as well as other performance stuff. How can I get that info? Like, how would I set variable 1 to the current fps?

I'm doing some tests on game performance, so it'd help out a ton if I could accurately save what the fps was at given times.
This script will return the current FPS, rounded to the nearest integer:
Code:
Math.round(Graphics._fpsMeter.fps)
In general RMMV's FPS Meter object is a member of the Graphics class: Graphics._fpsMeter.
If needed you can find details on its various properties/methods over here: https://github.com/Darsain/fpsmeter
Thank you! That's what I was looking for!

Original thread: https://forums.rpgmakerweb.com/threads/how-do-you-get-the-current-frame-rate.106533/