Odd Time of Day Reported with Ticker
Sebastian Huber
sebastian.huber at embedded-brains.de
Tue Jan 19 09:52:59 UTC 2016
The problem is that you set the time via rtems_clock_set() in Init().
The you wait via rtems_task_wake_after(5s in ticks). With a
rtems_task_wake_after(n) you wait to the n-th next tick, thus your wait
interval is slightly less than 5s in most cases.
On 18/01/16 00:19, Joel Sherrill wrote:
> Hi
>
> With the recent clock changes, I am noticing that on some BSPs
> ticker is reporting times 4, 9, 14, ... instead of 5, 10, 15.
>
> It looks like the time is 4.9999999 when it should simply be 5 so
> ticker just reports 4.
>
> Given this is a visible change in behavior, I would like to know
> what causes it and how it can be resolved?
>
> Thanks.
>
> --joel
>
>
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel
--
Sebastian Huber, embedded brains GmbH
Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone : +49 89 189 47 41-16
Fax : +49 89 189 47 41-09
E-Mail : sebastian.huber at embedded-brains.de
PGP : Public key available on request.
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
More information about the devel
mailing list