-
Notifications
You must be signed in to change notification settings - Fork 17
Love.Timer
Yx edited this page Jul 3, 2018
·
1 revision
Provides high-resolution timing functionality.
Returns the average delta time over the last second.
float delta = Timer.GetAverageDelta()Returns the time between the last two frames.
float dt = Timer.GetDelta()Returns the current frames per second.
float fps = Timer.GetFPS()Returns the amount of time since some time in the past.
float currentTime = Timer.GetTime()Pauses the current thread for the specified amount of time.
Timer.Sleep()Measures the time between two frames.
Timer.Step()