How to get current FPS by python scripting in Isaac sim?

Isaac Sim Version

4.2.0

Operating System

Windows 11

Topic Description

Detailed Description

How to get current FPS by python scripting in Isaac sim?
I want to get the FPS number as shown in the below figure with red line.