time.sleep accuracy

Alex Martelli aleaxit at yahoo.com
Tue Sep 19 09:25:25 CEST 2000

"Peter Hansen" <peter at engcorp.com> wrote in message
news:39C6DA7B.2D19B1C1 at engcorp.com...
> > In theory, it's hardware dependant.  But reasonably modern
> > hardware should be able to get within a millisecond if the
> > software is sufficiently discerning, so in practice it
> > probably is not hardware dependent on modern systems.
> Is the latter statement more than just theory?  I strongly doubt that
> Windows, for example, would consistently come in any closer than +/- ten
> or twenty milliseconds.  Maybe on a real-time operating system.

Millisecond resolution is available through the "multimedia timers"
on Windows if your hardware supports it (most PCs built in the last
few years do, but not all).


More information about the Python-list mailing list