T
Thomas Taylor
Is there a good way to (reliably) retrieve time on Pocket PC with resolution
of milliseconds?
I am implementing a stopwatch using the CF, and I have tried the following:
(1) System.DateTime.Now and GetSystemTime (in coredll.dll)
These always return zero for milliseconds.
(2) System.Environment.TickCount and GetTickCount (in coredll.dll)
These give milliseconds, but API documentation indicates that they are
accurate only to within 0.5 sec. Also, counting stops when the device is
turned off, which is unacceptable for my application.
(3) QueryPerformanceCounter (in coredll.dll)
Implementation of this one is OEM-specific, and it appears to me that most
manufacturers are not implementing it.
Any advice will be appreciated.
of milliseconds?
I am implementing a stopwatch using the CF, and I have tried the following:
(1) System.DateTime.Now and GetSystemTime (in coredll.dll)
These always return zero for milliseconds.
(2) System.Environment.TickCount and GetTickCount (in coredll.dll)
These give milliseconds, but API documentation indicates that they are
accurate only to within 0.5 sec. Also, counting stops when the device is
turned off, which is unacceptable for my application.
(3) QueryPerformanceCounter (in coredll.dll)
Implementation of this one is OEM-specific, and it appears to me that most
manufacturers are not implementing it.
Any advice will be appreciated.