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.
Synopsis
love.timer.sleep( ms )
Arguments
ms The amount of milliseconds.
Returns
(Nothing)
Examples
Example 7: Sleeping
  1. -- Example: Sleeping 
  2.  
  3. function update(dt) 
  4.     -- Sleeps 10ms after each udpate. By doing this, 
  5.     -- CPU time is made available for other processes, 
  6.     -- and your OS will love you for it. 
  7.     love.timer.sleep(10
  8. end 
Copyright © 2006-2008 LÖVE Development Team.