getFPS

getFPS()

Returns the current FPS count. This allows you to chose how to display, or log, the current FPS count.

// draws the fps counter on every frame
onEachFrame()
    fps = getFPS()
    drawText( fps, 100, 100 )
end

See also

showFPS