title: Lua Program Delay
body: <p>How would I use this to add a delay of 2 minutes to my Lua program, here is the code for the delay, but I dont know how to add the delay.</p>
  
  <pre><code>function sleep(n)
    local t = os.clock()
    while os.clock() - t &lt;= n do
      -- nothing
    end
  end
  </code></pre>