lovr.timer.step

Edit

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
deltanumber The amount of time since the last call to this function, in seconds.

See also