title: An accurate python sleep function
body: <p>I've tried time.sleep(), but its accuracy is total garbage. Consider this loop, for instance:</p>
  
  <pre><code>for i in range(10000000):
      print(i)
      sleep(.334)
  </code></pre>
  
  <p>Watch the numbers it prints. If it's anything like my computer, it's not even remotely regular. Is this function supposed to be accurate? Have I found a bug somewhere in my system?</p>
  
  <p>If this function is not supposed to be accurate, what function would be more accurate?</p>