diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2013-11-02 08:46:48 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2013-11-02 08:49:04 -0400 |
commit | ffae809ddecd0fb885f6b15407895d5b3072b1c1 (patch) | |
tree | 3abc1dc9fba685235017ca7553d836c2a54a5cbe /gpsprof | |
parent | e29a27065d7e016376f2bc4ad9e73ab962730950 (diff) | |
download | gpsd-ffae809ddecd0fb885f6b15407895d5b3072b1c1.tar.gz |
gpsprof can now make plots of time deta from PPS.
I think it is revealing problems in the PPS instrumentation...
Diffstat (limited to 'gpsprof')
-rwxr-xr-x | gpsprof | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -267,7 +267,13 @@ class timeplot(plotter): res += "%d\t%d\t%d\t%d\n" % (real_sec, real_nsec, clock_sec, clock_nsec) return res def plot(self): - return "" + fmt = '''\ +set autoscale +set key below +set key title "System clock delta from GPS time" +plot "-" using 0:(column(3)*1000000000+column(4)-(column(1)*1000000000+column(2))) title "Delta" with impulses +''' + return fmt + self.header() + self.data() class uninstrumented(plotter): "Total times without instrumentation." |