I don't think that method will always work.  The nilTimer parameter in
EvtGetEvent is the interval between nilEvents not an absolute, generate
nilEvent at that time.
If you make the polling time only as short as necessary, you won't burn up
your batteries.  I have several apps that use this method and the batteries
don't die any quicker.

----- Original Message -----
From: Peter Epstein <[EMAIL PROTECTED]>
Newsgroups: palm-dev-forum
To: Palm Developer Forum <[EMAIL PROTECTED]>
Sent: Thursday, March 16, 2000 6:08 PM
Subject: Re: Timers in PalmOS


> If you know you don't have anything to do until a specific time, you
should
> subtract the current time from that time to compute how long to wait, and
> use that as the delay argument to EvtGetEvent. This is better than just
> using a constant periodic check because it doesn't waste batteries just to
> poll. And as Dave said, when you do get back your nilEvent, don't assume
the
> time is up. Check, and if not, recompute how long to wait.
>
>
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palm.com/devzone/mailinglists.html
>
>


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to