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

Reply via email to