It would consider the resolution of your timer.  Are you talking about a numeric timer 
or a graphical timer where you have some
image progressing or degressing.  There are several "right" ways to do this:

* One is to trap nilEvent and update your timer that way.
* Another is to have a routine right after the event trapper case statements and see 
if enough time has come by to justify a change
in the graphics of your timer.

Steve

Steve Austin wrote:

> Hello everyone,
>
> I'm sure someone has done this before, so I figured I"d ask for advice.  I
> need to display a "ticking" timer and I'm wondering about event frequency.
> I know how to send events, and I know how to handle the screen, but how do I
> get an event to process every second.  It seems like if I was going to write
> code to do this I'd end up filling the message queue with timer messages,
> and most of the time the timer code would just exit, until a second actually
> passed.  This kind of timer would use up 100%  CPU time, and make it
> difficult to process user input (like clicking a button that closed the
> form).  What's the "right" way to go about this....
>
> Thanks,
>
> Steve
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe, please see 
>http://www.palmos.com/dev/tech/support/forums/


-- 
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