lovr.timer.step

Steps the timer, returning the new delta time. This is called automatically in lovr.run and it's used to calculate the new dt to pass to lovr.update.

delta = lovr.timer.step()

Arguments

None

Returns

NameTypeDescription
deltanumberThe amount of time since the last call to this function, in seconds.

See also