title: Delaying a function call on OS X
body: <p>I've seen there is a sleep method in the Win32 API and also a timer class to delay function calls.</p>
  
  <p>Is there something similar that I can use on Mac OS?</p>
  
  <p>I want a simple solution to create some sort of <code>setTimeout</code> function found in JavaScript and AS3.</p>