[issue44681] time.sleep(0.001) not working properly

Steve Dower report at bugs.python.org
Tue Jul 27 20:17:11 EDT 2021


Steve Dower <steve.dower at python.org> added the comment:

> Maybe it would be useful to implement something like this in time.sleep() itself, but I don't know whether the need in a few cases warrants the increased complexity and cost in general.

It certainly wouldn't be worth the power and CPU usage impact that people would inevitable get tricked into causing ("why is Python always using 100% of my CPU!?").

So as long as I'm around, feel free to consider that idea rejected ;) We'll improve the resolution of sleep when the operating system does.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44681>
_______________________________________


More information about the Python-bugs-list mailing list