call EvtGetEvent( &event, SysTicksPerSecond( ) );

this will generate a nil event every second.

cyril.

----- Original Message ----- 
From: "pcles" <[EMAIL PROTECTED]>
Newsgroups: palm-dev-forum
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Saturday, December 06, 2003 2:04 PM
Subject: Re: Using nilEvent to update a timer


> I'm having the same issue, also with a T3.
> I wrote a simple "metronome" application with prc-tools, relying on
> nilEvent.
>
> it is working perfectly on pre-OS5 Palms (such as m105, m500 or m515),
> but on my T3, it seems like some event are not treated by the event loop.
>
> No idea where it comes from.
>
> -- 
>
> Pierre
>
>
> In article <[EMAIL PROTECTED]>, "Michael Jones" <[EMAIL PROTECTED]>
> wrote:
>
> > On one of my forms I am trying to use the nilEvent to update a label
that is
> > acting as a timer.  Problem is that when I run it on my T3 the timer
only
> > updates every 5 to 6 seconds.
> >
> > It appears as though either:
> >
> > a) the nilEvents are getting "gobbeld" up before they get to my forms
Event
> > Handler
> >
> > or
> >
> > b) nilEvents are not being generated during periods of "inactivity"
> >
> > I am using EvtGetEvent(&event, 0); so according to the API reference
should
> > generate nilEvents between other events immediately.
> >
> > Anyone attempt to do a simliar thing?  I don't care if I get too many
> > nilEvents, it just seems I am not getting enough.
> >
>
> -- 
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
>

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

Reply via email to