From: Grant Edwards <grant.b.edwards@gmail.com>
To: ecos-discuss@sources.redhat.com
Subject: [ECOS] Re: Adjustable wallclock (get/settimeofday, adjtimex)?
Date: Mon, 27 Jun 2011 14:17:00 -0000 [thread overview]
Message-ID: <iua3cq$ggp$1@dough.gmane.org> (raw)
In-Reply-To: <4E07AFED.6040405@meduna.org>
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
next prev parent reply other threads:[~2011-06-27 14:17 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-26 22:17 [ECOS] " Stanislav Meduna
2011-06-27 8:17 ` [ECOS] " Daniel Néri
2011-06-27 14:17 ` Grant Edwards [this message]
2011-06-27 14:48 ` Stanislav Meduna
2011-06-27 15:14 ` Grant Edwards
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='iua3cq$ggp$1@dough.gmane.org' \
--to=grant.b.edwards@gmail.com \
--cc=ecos-discuss@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).