This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Does cyg_current_time() wrap?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]