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
  • References/Game Development/LÖVE/love.timer

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

2025-01-10 15:47:30
love.timer.getTime
  • References/Game Development/LÖVE/love.timer

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

2025-01-10 15:47:30
love.timer.getFPS
  • References/Game Development/LÖVE/love.timer

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

2025-01-10 15:47:30
love.timer.step
  • References/Game Development/LÖVE/love.timer

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

2025-01-10 15:47:30
love.timer.getDelta
  • References/Game Development/LÖVE/love.timer

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

2025-01-10 15:47:30
love.timer.getMicroTime
  • References/Game Development/LÖVE/love.timer

love.timer.getMicroTime Removed in LÖVE 0.9.0

2025-01-10 15:47:30
love.timer.sleep
  • References/Game Development/LÖVE/love.timer

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

2025-01-10 15:47:30