Thanks Paul, I looked back at the documentation, and the point about
0.5-second accuracy comes from the Framework documentation for
System.Environment.TickCount
(
http://msdn.microsoft.com/library/de...-us/cpref/html
/frlrfsystemenvironmentclasstickcounttopic.asp), which states "The
resolution of the TickCount property cannot be less than 500 milliseconds."
Perhaps this is a fudge factor for the managed environment to get the count?
The practical reason for needing to keep counting when the device is off is
that users may want to time events that last longer than their auto-suspend
time. One could easily start the stopwatch and have the device turn itself
off in the middle of the event.
From a programming standpoint, I would not really need it to keep counting
while it is off if, for example, I could save the start time (e.g., if
DateTime.Now gave milliseconds) and then compute the elapsed time any time
later, including after the device had been turned off and back on.
Thomas
"Paul G. Tobey [eMVP]" <ptobey no spam AT no instrument no spam DOT com>
wrote in message news:u4hq#(E-Mail Removed)...
> 2) I don't see anywhere that the accuracy is only 0.5s. Certainly, on our
> devices, the resolution is 1ms and the accuracy is pretty good, unless a
> misbehaving driver has been installed and is disabling the timer interrupt
> for long periods of time.
>
> If you're going to have to keep counting when the device is off, I think
> you're *completely* out of luck. Why would a Pocket PC device want to use
> battery, even when off, to count something that 99.99% of all people care
> nothing about? You'd need special hardware to maintain the count while
the
> power was off, battery-backed hardware.
>
> Paul T.