* [ECOS] Does cyg_current_time() wrap?
@ 2008-01-09 0:43 Rob Duncan
2008-01-09 0:50 ` Gary Thomas
0 siblings, 1 reply; 3+ messages in thread
From: Rob Duncan @ 2008-01-09 0:43 UTC (permalink / raw)
To: ecos-discuss
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)?
Thanks,
Rob.
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [ECOS] Does cyg_current_time() wrap?
2008-01-09 0:43 [ECOS] Does cyg_current_time() wrap? Rob Duncan
@ 2008-01-09 0:50 ` Gary Thomas
2008-01-09 1:29 ` [ECOS] " Grant Edwards
0 siblings, 1 reply; 3+ messages in thread
From: Gary Thomas @ 2008-01-09 0:50 UTC (permalink / raw)
To: Rob Duncan; +Cc: ecos-discuss
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
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
^ permalink raw reply [flat|nested] 3+ messages in thread
* [ECOS] Re: Does cyg_current_time() wrap?
2008-01-09 0:50 ` Gary Thomas
@ 2008-01-09 1:29 ` Grant Edwards
0 siblings, 0 replies; 3+ messages in thread
From: Grant Edwards @ 2008-01-09 1:29 UTC (permalink / raw)
To: ecos-discuss
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-01-09 1:29 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-09 0:43 [ECOS] Does cyg_current_time() wrap? Rob Duncan
2008-01-09 0:50 ` Gary Thomas
2008-01-09 1:29 ` [ECOS] " Grant Edwards
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).