Re: advice on how to detect time change
- From: Paul Pluzhnikov <ppluzhnikov-nsp@xxxxxxxxxxx>
- Date: Thu, 27 Sep 2007 08:14:08 -0700
John Hasler <john@xxxxxxxxxx> writes:
My application doesn't care what the system time is, or care that it is
correct, but it does need to detect if some external entity changes the
time out from under it (this is a master device which must globally
update slave devices with a time change if the user (or some other force
such as ntp) changes the time on the master system.
Then your program need not deal with system time at all. You should
install an NTP package such as Ntp or Chrony on the master and on each
slave
Aren't you making an assumption about what runs on 'each slave'?
For all we know, the slaves might all be 4-bit micros in his array of
washing machines. Good luck installing ntpd on them.
To OP:
You are still leaving out a lot of (possibly relevant) details.
The easiest solution is to simply set time on all slaves from
current master time every second. Presumably that doesn't work for
you (perhaps it generates too much traffic, or overloads slaves,
or ...).
You need to explain your design criteria better.
Cheers,
--
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.
.
- Follow-Ups:
- Re: advice on how to detect time change
- From: John Hasler
- Re: advice on how to detect time change
- References:
- advice on how to detect time change
- From: d_cymbal@xxxxxxxxxxx
- Re: advice on how to detect time change
- From: John Hasler
- Re: advice on how to detect time change
- From: d_cymbal@xxxxxxxxxxx
- Re: advice on how to detect time change
- From: John Hasler
- advice on how to detect time change
- Prev by Date: Re: Regarding shared library and GDB
- Next by Date: Re: advice on how to detect time change
- Previous by thread: Re: advice on how to detect time change
- Next by thread: Re: advice on how to detect time change
- Index(es):
Relevant Pages
|