summaryrefslogtreecommitdiff
path: root/gpsprof
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2013-11-02 08:46:48 -0400
committerEric S. Raymond <esr@thyrsus.com>2013-11-02 08:49:04 -0400
commitffae809ddecd0fb885f6b15407895d5b3072b1c1 (patch)
tree3abc1dc9fba685235017ca7553d836c2a54a5cbe /gpsprof
parente29a27065d7e016376f2bc4ad9e73ab962730950 (diff)
downloadgpsd-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-xgpsprof8
1 files changed, 7 insertions, 1 deletions
diff --git a/gpsprof b/gpsprof
index 4a13f095..05fe4736 100755
--- a/gpsprof
+++ b/gpsprof
@@ -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."