Difference between revisions of "love.timer"

m (Concept current)
Line 1: Line 1:
 
Provides an interface to the user's clock.
 
Provides an interface to the user's clock.
 
== Functions ==
 
== Functions ==
{{#ask: [[Category:Functions]] [[parent::love.timer]] [[Since::<071]]
+
{{#ask: [[Category:Functions]] [[parent::love.timer]] [[Concept:Current]]
 
| headers=hide
 
| headers=hide
 
| ?Description
 
| ?Description

Revision as of 17:05, 30 August 2011

Provides an interface to the user's clock.

Functions

love.timer.getAverageDeltaReturns the average delta time over the last second.
love.timer.getDeltaReturns the time between the last two frames.
love.timer.getFPSReturns the current frames per second.
love.timer.getMicroTimeReturns the value of a timer with microsecond precision.
love.timer.getTimeReturns the amount of time since some time in the past.
love.timer.sleepPauses the current thread for the specified amount of time.
love.timer.stepMeasures the time between two frames.

See Also


Other Languages