Version 0.3.2
LÖVE Documentation
OverviewLicenseCreditsInstallingGetting started
Devices
love.graphicslove.audiolove.keyboardlove.mouselove.filesystemlove.timerlove.system
Types
AnimationColorFontFileImageMusicParticleSystemSound
Callbacks
loadupdatedrawmousepressedmousereleasedkeypressedkeyreleased
Miscellaneous
ConstantsConfig filesKeyboard shortcuts
Function
love.timer.sleep( ms )
Delays execution for the specified amount of milliseconds. Tragically, the precision varies from system to system, and is generally not very good. Do not expect to get better precision than the nearest 10ms.
Usage
love.timer.sleep( ms )
Arguments
msThe amount of milliseconds.
Returns
Nothing
Examples
Example 1: Saving CPU time by sleeping. function update(dt)

   mygame:do_stuff()

   -- Sleep 10 ms.
   love.timer.sleep(10)
end