"Nielsen, Jimmy Selgen" <[EMAIL PROTECTED]> wrote:
> yea yea... i know i'm being a pain :)..
>
> is it possible to create timers in PalmOS ??.. I dont mean Alarms, but real
> timers that i can register, and at a given interval, they send me events.
> And of course, they are only active when my app is running.
>
> I'm writing a project time logger application, and i have a trigger for a
> timer, so i would like to update the display say every minute, i know i
> could use SysTaskDelay(), but then i would be unable to respond to other
> events.
Use an appropriate timeout value (somewhat less than a minute) as the
time argument to EvtGetEvent. If the time has elapsed without some
other event, the OS will issue a nilEvent. Be warned that you may
(likely will) get nilEvents more often than you desire. Process them by
checking the time since your last update, and calling EvtGetEvent again
with the appropriate time. You get the idea.
--
Roger Chaplin
<[EMAIL PROTECTED]>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html