Uptime difference between FreeBSD and RTEMS
Joel Sherrill
joel.sherrill at oarcorp.com
Wed Apr 1 14:20:09 UTC 2015
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.
> 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
> _______________________________________________
> users mailing list
> users at rtems.org
> http://lists.rtems.org/mailman/listinfo/users
--
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 devel
mailing list