How can I get the real time fps?

How can I get the real time fps? Thanks in advance.

There’s an example of this here: https://sandcastle.cesium.com/index.html?src=Scene%20Rendering%20Performance.html

viewer.scene.debugShowFramesPerSecond =true;

``