----- Joel Sherrill <[email protected]> schrieb:
> 
> 
> On 4/1/2015 9:18 AM, Gedare Bloom wrote:
> > Would you then subtract 1 from uptime when reporting it? Or would
> > users be expected to know that uptime is off-by-1?
> I would prefer we subtract one when reporting to the user.

The question is reporting via which API.  We have the RTEMS and POSIX APIs and 
the FreeBSD kernel APIs.  So the consensus is to report uptimes relative to 
zero for the RTEMS and POSIX APIs and relative to one second for the FreeBSD 
kernel APIs?
 
> > On Wed, Apr 1, 2015 at 4:07 AM, Alexander Krutwig
> > <[email protected]> wrote:
> >> Hello,
> >>
> >> during my work with FreeBSD timecounters, I found out that the FreeBSD
> >> timecounters start with an uptime value of 1 second. Developers of FreeBSD
> >> told me that this is due to problems in the ARP code.
> >> RTEMS uptime is initialized to an uptime value to 0 seconds.
> >> Are there any problems if the configuration of the RTEMS uptime is also
> >> initialized to 1 second for synchonization? Else, we would have different
> >> values for different API functions which is the second option.
> >>
> >> Best regards,
> >> Alexander Krutwig
> >>
> >> --
> >> --------------------------------------------
> >> embedded brains GmbH
> >> Alexander Krutwig
> >> Dornierstr. 4
> >> D-82178 Puchheim
> >> Germany
> >> email: [email protected]
> >> Phone: +49-89-18 94 741 - 17
> >> Fax:   +49-89-18 94 741 - 09
> >> PGP: Public key available on request.
> >>
> >> Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
> >>
> >> _______________________________________________
> >> devel mailing list
> >> [email protected]
> >> http://lists.rtems.org/mailman/listinfo/devel
> > _______________________________________________
> > users mailing list
> > [email protected]
> > http://lists.rtems.org/mailman/listinfo/users
> 
> -- 
> Joel Sherrill, Ph.D.             Director of Research & Development
> [email protected]        On-Line Applications Research
> Ask me about RTEMS: a free RTOS  Huntsville AL 35805
> Support Available                (256) 722-9985
> 
> _______________________________________________
> devel mailing list
> [email protected]
> http://lists.rtems.org/mailman/listinfo/devel
_______________________________________________
devel mailing list
[email protected]
http://lists.rtems.org/mailman/listinfo/devel

Reply via email to