Re: Problem with Swing Timer: timer-updated GUI occasionally stops
updating
John B. Matthews wrote:
I think that's going to have the same problem is she changes the
system clock.
Yes, particularly if the clock is stepped backward. It should be
possible to use ntp to adjust the local clock in a manner that mitigates
this, assuming the local network has (or allows access to) suitable time
sources:
<http://en.wikipedia.org/wiki/Network_Time_Protocol>
<http://en.wikipedia.org/wiki/Clock_synchronization>
<http://www.ntp.org/>
"Under ordinary conditions, ntpd slews the clock so that the time is
effectively continuous and never runs backwards." In practice, a clock
that's way off may take a long time to adjust at the nominal slew rate,
which is limited to 0.5 ms/s. Starting ntpd with -g is a reasonable
alternative:
<http://www.ece.udel.edu/~mills/ntp/html/ntpd.html>
I've got some programs in the wild running 24/7. We have to keep the
system time accurate or it's a disaster. Were running Windblows so
there is no ntpd but we've used Automachron for a long time and been
very happy with it.
It's just not possible to make changes to the system time and expect any
timing operations to work, at least the ones based on wait().
--
Knute Johnson
email s/nospam/knute2008/
--
Posted via NewsDemon.com - Premium Uncensored Newsgroup Service
------->>>>>>http://www.NewsDemon.com<<<<<<------
Unlimited Access, Anonymous Accounts, Uncensored Broadband Access