[ECOS] Re: Adjustable wallclock (get/settimeofday, adjtimex)?

Grant Edwards grant.b.edwards@gmail.com
Mon Jun 27 14:17:00 GMT 2011


On 2011-06-26, Stanislav Meduna <stano@meduna.org> wrote:
> Hi,
>
> the gettimeofday method in compat/posix is currently implemented
> based on cyg_current_time(), settimeofday is missing.
>
> If I understand it correctly the cyg_current_time() is also
> used for timeout processing all over the code so messing
> with its base is not a good idea.

When I needed to adjust the time to keep it in sync with a real-time
clock, I did it at a lower level by adding hooks into the target's HAL
code that allowed me to gradually slew the cyg_current_time() value by
adjusting the length of a system tick by small amounts.

-- 
Grant Edwards               grant.b.edwards        Yow! I request a weekend in
                                  at               Havana with Phil Silvers!
                              gmail.com            


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss



More information about the Ecos-discuss mailing list