Re: advice on how to detect time change
- From: John Hasler <john@xxxxxxxxxx>
- Date: Thu, 27 Sep 2007 09:47:13 -0500
I wrote:
Put an NTP client into your program.
d_cymbal writes:
Perhaps I didn't phrase that question correctly.
You phrased it correctly. You just left of the details. Putting an NTP
client in your program and having it query a reliable time server would
allow it to detect changes in the local system time.
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 and configure the slaves to track the master. This is exactly the
sort of thing that NTP is for.
--
John Hasler
john@xxxxxxxxxx
Dancing Horse Hill
Elmwood, WI USA
.
- Follow-Ups:
- Re: advice on how to detect time change
- From: d_cymbal@xxxxxxxxxxx
- Re: advice on how to detect time change
- From: Paul Pluzhnikov
- 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
- advice on how to detect time change
- Prev by Date: Re: advice on how to detect time change
- Next by Date: Re: Regarding shared library and GDB
- 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
|