Uptime difference between FreeBSD and RTEMS

Gedare Bloom gedare at rtems.org
Wed Apr 1 14:18:36 UTC 2015


Would you then subtract 1 from uptime when reporting it? Or would
users be expected to know that uptime is off-by-1?

On Wed, Apr 1, 2015 at 4:07 AM, Alexander Krutwig
<alexander.krutwig at embedded-brains.de> 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: alexander.krutwig at embedded-brains.de
> 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
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel


More information about the devel mailing list