Difference between revisions of "love.timer.step"

m
m (0.11.0 variant (returns deltaT))
Line 10: Line 10:
 
=== Returns ===
 
=== Returns ===
 
Nothing.
 
Nothing.
 +
== Function ==
 +
{{newin|[[0.11.0]]|110|type=variant}}
 +
=== Synopsis ===
 +
<source lang="lua">
 +
dt = love.timer.step( )
 +
</source>
 +
=== Arguments ===
 +
None.
 +
=== Returns ===
 +
{{param|number|dt|The time passed (in seconds).}}
 
== See Also ==
 
== See Also ==
 
* [[parent::love.timer]]
 
* [[parent::love.timer]]

Revision as of 12:36, 17 January 2018

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

Function

Synopsis

love.timer.step( )

Arguments

None.

Returns

Nothing.

Function

Available since LÖVE 0.11.0
This variant is not supported in earlier versions.

Synopsis

dt = love.timer.step( )

Arguments

None.

Returns

number dt
The time passed (in seconds).

See Also


Other Languages