Set EvtGetEvent to generate a nilEvent at or twice the interval you require.
Handle the nilEvent in your app or form event handler (make sure you check
the ticks and act only when necessary because the OS generates nilEvents
also)
-----Original Message-----
From: David Maclay <[EMAIL PROTECTED]>
To: '[EMAIL PROTECTED]' <[EMAIL PROTECTED]>
Date: Friday, January 07, 2000 12:42 PM
Subject: getting accurate elapsed time
>The palm SDK describes the functions TimGetTicks and TimGetSeconds.
>
>The former has a resolution of 1/100 second, however, it only increments
>when the device is not in sleep mode.
>
>TimGetSeconds has a resolution of 1 second, although I've done some tests
>and the underlying accuracy appears to be better than 1 second - even when
>the device has been in sleep mode.
>
>My question is, how can I get accuracy AND resolution better than 1/10
>second. Are there any undocumented calls to look at a counter on the CPU?
>
>I'd appreciate any advice on this.
>
>Thanks,
>
>Dave Maclay
>
>