ChaiLove API  0.28.0
Public Member Functions
love::timer Class Reference

Provides high-resolution timing functionality. More...

Public Member Functions

float getDelta ()
 Returns the time between the last two frames. More...
 
int getFPS ()
 Returns the current frames per second. More...
 

Detailed Description

Provides high-resolution timing functionality.

Member Function Documentation

◆ getDelta()

float love::timer::getDelta ( )

Returns the time between the last two frames.

Returns
The time passed (in seconds).

◆ getFPS()

int love::timer::getFPS ( )

Returns the current frames per second.

Returns
The current FPS.
var fps = love.timer.getFPS()
print("FPS: " + to_string(fps))