Re: Sleep() issue

Tech-Archive recommends: Fix windows errors by optimizing your registry



It seems the thread went off in lots of directions about your design choices
but let me answer the basic question you posed. The Sleep interval is
determined by the motherboard and the HAL. If you are using the same
motherboard for XP and XPe and you get different Sleep intervals then I
think the reason is that you are not using the same HAL.

HM

"Senen" <senen@xxxxxxxxxx> wrote in message
news:4628a093$0$5095$ba4acef3@xxxxxxxxxxxxxxxxx
Hi,

In my program I need to wait for a device for about 2ms. The accuracy of
the wait is not critical.
It works under Windos XP with a simple Sleep(2).
Under XPE the same program will wait for 15ms instead of 2ms.
Any value for Sleep() lower than 15ms will produce the same wait of 15ms.
The use of SetWaitableTimer produces the same effect.
How can I get a delai of few milliseconds in XPE?

Thanks
Senen




.