擅长:python、mysql、java
<p>参考这里的帖子<a href="https://stackoverflow.com/questions/1133857/how-accurate-is-pythons-time-sleep">How accurate is python's time.sleep()?</a></p>
<p>上面写着:</p>
<blockquote>
<p>"The accuracy of the time.sleep function depends on the accuracy of
your underlying OS's sleep accuracy. For non-realtime OS's like a
stock Windows the smallest interval you can sleep for is about
10-13ms. I have seen accurate sleeps within several milliseconds of
that time when above the minimum 10-13ms."</p>
</blockquote>