Jack DeVries <jdevries3...@gmail.com> added the comment:

This is not a bug. See the docs:

The precision of the various real-time functions may be less than suggested by 
the units in which their value or argument is expressed. E.g. on most Unix 
systems, the clock “ticks” only 50 or 100 times a second.

On the other hand, the precision of time() and sleep() is better than their 
Unix equivalents: times are expressed as floating point numbers, time() returns 
the most accurate time available (using Unix gettimeofday() where available), 
and sleep() will accept a time with a nonzero fraction (Unix select() is used 
to implement this, where available).



Assuming a clock speed of 50x/second as the documentation names, the cpu only 
cycles every 0.02 seconds.

----------
nosy: +jack__d

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue44681>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to