On Mon, Sep 11, 2023 at 08:03:49AM -0400, Josef 'Jeff' Sipek wrote:
> On Mon, Sep 11, 2023 at 10:29:30 +0200, Miroslav Lichvar wrote:
> > That timestamp doesn't need much resolution. It just says when the
> > offset (in double format) was captured. Milliseconds would be fine.
> 
> Ok.  I just saw that the code uses that the timestamp and the offset to
> calculate the time (for non-PPS sources) and it seemed desirable to get more
> than microsecond resolution for that before it gets fed into RCL_AddSample.
> In other words, this timestamp indirectly affects the resolution of the
> sample fed in.

It's converted to timespec and then back to double after applying the
offset option. The resolution of the original timestamp doesn't
impact the resolution of the offset. It is effectively handled in
nanosecond resolution.

-- 
Miroslav Lichvar


-- 
To unsubscribe email chrony-dev-requ...@chrony.tuxfamily.org with "unsubscribe" 
in the subject.
For help email chrony-dev-requ...@chrony.tuxfamily.org with "help" in the 
subject.
Trouble?  Email listmas...@chrony.tuxfamily.org.

Reply via email to