love.timer.getDelta( )
Returns the time (in seconds) since last frame. This is the same value that is
passed with the update-callback each frame, so you should't really need to
use this function. Ever.
Usage
love.timer.getDelta( )
Arguments
None
Returns
numberThe current timestep.
Examples
Example 1: Getting the time step.
function update(dt)
if dt == love.timer.getDelta() then
print("My God! They're equal!")
else
print("... should not be possible.")
end
end
function draw()
-- But we can also get the delta here, if we
-- really want to.
local dt = love.timer.getDelta()
end