frameRate(outputelement)

Returns the current frame rate of the sketch in the provided element.
Its not super accurate, but it's good enough for most purposes.

Note : Its cannot be used to throttle FPS. ChelseaJS will definetely have the feature in future updates, but right now its not available.

Syntax

                
    frameRate();    // returns the current framerate
            

Example

                
    frameRate('#fps-counter');