rtems 4.9.0 rtems_clock_get API improvements.... not always

Joel Sherrill joel.sherrill at OARcorp.com
Fri Jun 12 14:21:13 UTC 2009


Maurizio Scavazzon wrote:
>
>
> > Date: Fri, 12 Jun 2009 06:58:27 -0500
> > From: joel.sherrill at oarcorp.com
> > To: scavazzon at hotmail.com
> > CC: rtems-users at rtems.org
> > Subject: Re: rtems 4.9.0 rtems_clock_get API improvements.... not always
>  
>
> > Do you really need the Classic API TOD format or would you be
> > better served by using rtems_clock_get_timespec?
>
> I cannot find any rtems_clock_get_timespec. Were you talking about the 
> rtems_clock_get with RTEMS_CLOCK_GET_TIME_VALUE option?
http://www.rtems.org/onlinedocs//doc-current/share/rtems/html/c_user/c_user00121.html
> I need the TOD format because date and time are displayed in the 
> device's MMI and used to store events with timestamp anytime they occour.
>
Why are you grabbing the timestamp in a printable format?  Let the MMI
convert the timestamp into a printable format.
>
> > Alternatively do you have a faster algorithm for converting
> > seconds/nanoseconds into the Classic API TOD format.
>
> Actually I have no time to investigate this issue, maybe in the 
> future. Moreover a solution that was right for me was already there in 
> the previous version of rtems.
>
But the previous solution could only give timestamps to tick granularity.
> Thank you for your answers.
>
No problem.
> Regards,
> Maurizio
>
> ------------------------------------------------------------------------
> Personalizza Messenger 2009. Scegli la grafica che ti rappresenta 
> meglio! <http://messenger.it/funzioniPersonalizzazione.aspx>


-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel.sherrill at OARcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
   Support Available             (256) 722-9985





More information about the users mailing list