[python-win32] Re: sleep() fine-control in Python - RDTSC,
select() etc.
Gabriel Genellina
gagenellina at softlab.com.ar
Tue Jan 25 03:48:11 CET 2005
At 24/1/2005 21:24, you wrote:
>I have a need for a time.clock() with >0.000016 second (16us) accuracy.
>The sleep() (on Python 2.3, Win32, at least) has a .001s limit. Is it
>lower/better on other's platforms?
Try a waitable timer
<http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/waitable_timer_objects.asp>
SetWaitableTimer specifies the interval with 100ns granularity, but maybe
the actual timer precision depends on hardware or OS version or ...
More information about the Python-win32
mailing list