[ECOS] Re: Does cyg_current_time() wrap?

Grant Edwards grante@visi.com
Wed Jan 9 01:29:00 GMT 2008

On 2008-01-09, Gary Thomas <gary@mlbassoc.com> wrote:
> Rob Duncan wrote:
>> Is cyg_tick_count_t always 64-bits wide?  Is it valid to assume that
>> the values returned by cyg_current_time() will never wrap around (in
>> practice)?
> Yes & yes

I guess it depends on whether you plan for any of your products
to run for 584.5 million years without a reset or power outage
That's assuming a 1ms tick.  With a 10ms tick, you're up to
over 5 billion years, so that's probably safe.

Grant Edwards                   grante             Yow! ... I'm IMAGINING a
                                  at               sensuous GIRAFFE, CAVORTING
                               visi.com            in the BACK ROOM of a
                                                   KOSHER DELI --

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