Re: setTimer - what have I missed?

From: Platform Builder (markmo_at_qualnetics.com)
Date: 02/26/05


Date: 26 Feb 2005 10:16:29 -0800

In general, Windows SetTimer API should be avoided for any sort of
timing applicaton that requires any accuracy. The implementation of
WM_TIMER on Windows CE is handled by an application level priority
thread that may or may not get scheduled in a timeframe necessary to
send the WM_TIMER message. Recent versions of Windows CE allow that
thread priority to be change but still the publication of the WM_TIMER
message is dependent on the scheduling of a thread. Also the GWES
component that is necessary to support this timing mechanism is largely
single threaded due to the single critical section that gets taken when
entering most of the API's in GWES. This can delay the arrival or
processing of the timer message depending on what other applicatons are
doing with GWES. In general, WM_TIMER is not a good technology to use
if you need a reliable, accurate timing technology in Windows CE. It
is fine to use if there will be no fault in your system if the WM_TIMER
message arrives late or never arrives.

Mark Moeller
Chief Architect
Qualnetics Corporation



Relevant Pages

  • Re: Windows CE browser performance problems (very detailed)
    ... >Windows CE arises from how these OSs handle system ... >to GWES and executes the function and then returns the ... >ability to make cheaper GWES cals into kernel. ... IBench is a good tool ...
    (microsoft.public.windowsce.platbuilder)
  • Re: LuxAsm questions
    ... Beth, when timing stuff, you should discard all but the fastest ... Dunno how bad it is to link in libc shared, ... If you care about desktop machines at home, it's like "x86 + windows". ... If you start writing more "funky" ...
    (alt.lang.asm)
  • Re: What could be the best for Timing
    ... Depends on what they mean by "timing", which is part of why I asked about wall-clock time. ... Windows is not a real-time system, and it is an illusion to pretend that it is. ... time" or "meeting hard realtime deadlines". ... If good precision 99.9% of the time is good enough, ...
    (microsoft.public.vc.mfc)
  • Re: Headless device
    ... >Create a null display driver so you can have GWES and Windows. ... The reason is that code now thinks ... You can use a minimal GWES ... smaillet at EmbeddedFusion dot com ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Event Id errors
    ... this sounds like a timing issue. ... Windows help - www.rickrogers.org ... > I also had these error messages. ... > 'ntfs eventid 50 ...
    (microsoft.public.windowsxp.general)