Nicolás Balparda Bossi schrieb:
Could anyone give me some advice on how to use a timer on palm? I really
cant find anything useful :(
It depends what kind of timer you want. If you want a irregular timer
with seconds to days delay, the choose the alarm manager. If you need
more regular updates, modify your AppEventLoop
Pass for instance SysTicksPerSecond() to EvtGetEvent instead of -1 to
get a nilEvent every second. Or 10 for an event every 10.-th tick. But
beware, this is not time-critical. You cannot rely on getting it exactly
every x.-th Tick. Its just approx. and depends on the idle-time.
Example:
do{
EvtGetEvent(&event, 10); // every 10 Ticks
if(!SysHandleEvent(&event))
// ....
}while(event.eType != appStopEvent);
Thomas
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/