Re: Sleep() issue



The application is a console application (VisualC/C++)
It's started by opening a DOS cmd window with the command start.

Senen

"Sean Liming (eMVP)" <sean_liming@xxxxxxxxxxxx> a écrit dans le message de
news: OZHDNk4gHHA.4704@xxxxxxxxxxxxxxxxxxxxxxx
I thought there was a WaitForService, but I guess they are the same thing.
Same time is a bit puzzling.



Is this application the shell for the system? If so are you setting the
SetShellReadyEvent?



Sean Liming
www.sjjmicro.com / www.seanliming.com
XP Embedded Book Author - XP Embedded Advanced, XP Embedded Supplemental
Toolkit




"Senen" <senen@xxxxxxxxxx> wrote in message
news:4628ff3e$0$27381$ba4acef3@xxxxxxxxxxxxxxxxx
If I understand correctly, you mean any WaitForSingleObject() with a
timeout
of 2ms, but again the same behavior.

Regards
Senen


"Sean Liming (eMVP)" <sean_liming@xxxxxxxxxxxx> a écrit dans le message
de news: eiiRQz1gHHA.588@xxxxxxxxxxxxxxxxxxxxxxx

Instead of sleep is it possible to do a wait on service, which is a bit
more accurate?

Regards,

Sean Liming
www.sjjmicro.com / www.seanliming.com
XP Embedded Book Author - XP Embedded Advanced, XP Embedded Supplemental
Toolkit


"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










.



Relevant Pages

  • Re: Sleep() issue
    ... XP Embedded Book Author - XP Embedded Advanced, ... Toolkit ... Instead of sleep is it possible to do a wait on service, ... Under XPE the same program will wait for 15ms instead of 2ms. ...
    (microsoft.public.windowsxp.embedded)
  • Re: Sleep() issue
    ... you mean any WaitForSingleObjectwith a timeout ... news: eiiRQz1gHHA.588@xxxxxxxxxxxxxxxxxxxxxxx ... 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. ...
    (microsoft.public.windowsxp.embedded)
  • Re: Extending ruby with c
    ... Good news: ... Copyright Microsoft Corp 1988-94. ... Becker ... you could install the MinGW toolkit from ...
    (comp.lang.ruby)
  • Re: good news and bad news
    ... I have had diabetes 20 years. ... >news is my kidney function is still good. ... The other bad news is I have severe, ... and I do mean a little restful sleep. ...
    (alt.support.diabetes)
  • Re: Philippines Travel Warning 4/27/07
    ... I still have to shake the hand of the person who doesn't sleep. ... There is 24/7 news but there was no mention of a person who doesn't sleep, if what you meant - watching it. ... The analogy that there's water on tap 24/7 doesn't mean you're gonna be shaking hands to people imbibing it at same degree of time it is provided. ... I don't see any possibility of analogy between reading/watching/listening to news and the biological need for hydration. ...
    (soc.culture.filipino)