love.timer

Provides high-resolution timing functionality.

Functions

love.timer.getAverageDelta Returns the average delta time over the last second. 0.9.0
love.timer.getDelta Returns the time between the last two frames.
love.timer.getFPS Returns the current frames per second.
love.timer.getMicroTime Returns the value of a timer with microsecond precision. 0.9.0
love.timer.getTime Returns the amount of time since some time in the past. 0.3.2
love.timer.sleep Pauses the current thread for the specified amount of time. 0.2.1
love.timer.step Measures the time between two frames.

See Also


love.timer.getAverageDelta

love.timer.getAverageDelta Available since LÖVE 0.9.0 This function is not supported in earlier versions. Returns the average delta time (seconds

2017-03-21 15:50:33
love.timer.getTime

love.timer.getTime Returns the value of a timer with an unspecified starting time. This function should only be used to calculate differences between points in time, as the starting time of

2017-03-21 15:50:35
love.timer.getFPS

love.timer.getFPS Returns the current frames per second. Function Synopsis

2017-03-21 15:50:34
love.timer.step

love.timer.step Measures the time between two frames. Calling this changes the return value of

2017-03-21 15:50:36
love.timer.getDelta

love.timer.getDelta Returns the time between the last two frames. Function Synopsis

2017-03-21 15:50:33
love.timer.sleep

love.timer.sleep Pauses the current thread for the specified amount of time. This function causes the entire thread to pause for the duration of the sleep. Graphics will

2017-03-21 15:50:35
love.timer.getMicroTime

love.timer.getMicroTime Removed in LÖVE 0.9.0

2017-03-21 15:50:34