It depends how precise the timing has to be. The alarm manager's precision 
isn't good enough if the event indeed has to occur exactly every second.

For things like on-screen clocks it is indeed better to do it from the event 
loop - i.e., tell the system to generate events faster (in your event loop, 
call EvtGetEvent not with evtWaitForever but with some small value, e.g. 
SysTicksPerSecond()/2) and then check how much time has passed since the last 
time you got nilEvent (which might be less than the timeout specified when 
calling EvtGetEvent).

Regards,
Vesselin

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

Reply via email to