At 12:45 PM -0800 2002/02/04, [EMAIL PROTECTED] wrote:
>How periodic should it be called?

Ummm... more often than the auto-off time(?) Maybe I don't completely understand your 
question...(?)


>Is there any penalty for calling it too frequently?

Not really. It just resets a low-memory counter variable, so the overhead is almost 
completely negligible; it's no greater than calling any other Palm OS API through the 
system trap dispatcher. So call it as frequently as you like. Every trip through your 
main event loop is probably fine, as long as you don't choose to wait-forever when 
getting events -- that would allow the auto-off timer to trigger before the app has a 
chance to reset the timer, which by then is too late, as the device has already begun 
it's auto-off process.

Regards,

Jim Schram
PalmSource Inc.
Partner Engineering

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to