title: python timer in minutes
body: <p>I am trying to run the below code. It fails to run for 5 minutes, can you please let me know what the issue is here. I am trying to run this in background by saving as <code>.pyw</code> and alert me after finishing 1 hours, as per what is passed in timer arguments.</p>
  
  <pre><code>import time
  import ctypes
  def timer(minutes):
      seconds = minutes * 60
      start = time.time()
      time.clock()
      elapsed = 0
      while elapsed &lt; seconds:
          elapsed = time.time() - start
      time.sleep(1)
      timer(5) #would want enter in hours not in seconds
      ctypes.windll.user32.MessageBoxA(0,"DoneToday", "Dones", 0)
  </code></pre>