[ntp:questions] Creating a multi-minute offset

Uwe Klein uwe at klein-habertwedt.de
Fri Feb 24 08:30:41 UTC 2012

A C wrote:
> On 2/22/2012 23:56, David Woolley wrote:
>> A C wrote:
>>> Ok, so here's an odd question but I had an amusing thought so I want
>>> to know:
>>> Is it possible to force a client to synchronize with network servers
>>> but also maintain a time offset of several minutes from those servers?
>> If this isn't just a special case of timezones, you would need to modify
>> the OS interface layer of the code to shift the time when reading and
>> writing the system clock, so that the core of ntpd sees the correct time.
> Yeah, it's not a matter of time zone, it's trying to force an absolute 
> time lag on one machine as part of a simulation.  The idea was that the 
> clocks should run at the same speed but one of them needs to be shifted 
> from the other.
> It was a thought but obviously it doesn't work.

I would use gpsd to fudge data.
The software is probably lucid enough to introduce
an adjustable offset onto what is placed in the shm
that is used to forward to ntpd.


More information about the questions mailing list