[En-Nut-Discussion] Problem regarding the Timer API

Matthias Ringwald mringwal at inf.ethz.ch
Fri May 29 10:37:21 CEST 2009


hi

think of the "Timer" in Nut/OS as a tea timer. When the pre-set time  
is up, it rings, and your tea is ready.
To measure the time between two events, just record the system time  
when the first event occurs. Have a look at NutGetTime() or so.

m.

On 29.05.2009, at 10:32, <Prasad.Nagapati at infineon.com> wrote:

>
> Hi All,
>
> I have one question regarding the Timers.
>
> I want to use the timer in my application, there is certain condition
> however.
>
> An event is triggered (say UART) and I want to start the timer for  
> this
> event. But I don't know how much time it will take for the processing
> that event. Once the processing is done I will get another trigger  
> (from
> UART) and I want to stop the timer. And I want to calculate the time
> taken for the processing of this event.
>
> Hence if I use any API's say NutTimerStart <group__xgTimer.html>  I  
> have
> to give the time in milliseconds but I don't know it in advance.  
> Also if
> I use NutTimerStartTicks <group__xgTimer.html>  again I have to give  
> the
> ticks in advance.
> Please suggest me which API's I can use, if not how I should use the
> timer for this particular case.
>
> Thanks in advance
> Prasad H N
>
> _______________________________________________
> http://lists.egnite.de/mailman/listinfo/en-nut-discussion




More information about the En-Nut-Discussion mailing list