[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gpsd-dev] Refactoring the time service.
From: |
Michael Tatarinov |
Subject: |
[gpsd-dev] Refactoring the time service. |
Date: |
Wed, 6 Nov 2013 11:54:29 +0400 |
Hello
Gary E. Miller, precision isn't a placebo, ntpd uses it.
see http://bk.ntp.org/ntp-dev/ntpd/ntp_proto.c
void
process_packet(
register struct peer *peer,
register struct pkt *pkt,
u_int len
)
{
--- cut ---
p_del = max(p_del, LOGTOD(sys_precision));
p_disp = LOGTOD(sys_precision) + LOGTOD(peer->precision) +
clock_phi * p_del;
--- cut ---
and
static double
root_distance(
struct peer *peer /* peer structure pointer */
)
{
--- cut ---
dtemp = (peer->delay + peer->rootdelay) / 2
+ LOGTOD(peer->precision)
+ LOGTOD(sys_precision)
+ clock_phi * (current_time - peer->update)
+ peer->rootdisp
+ peer->jitter;
--- cut ---
0001-ntpshm_pps-is-gone.patch
Description: Binary data
0002-Simplify-the-PPS-hook.patch
Description: Binary data
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gpsd-dev] Refactoring the time service.,
Michael Tatarinov <=