summaryrefslogtreecommitdiff
path: root/gps
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-09-20 22:52:57 -0400
committerEric S. Raymond <esr@thyrsus.com>2011-09-20 22:52:57 -0400
commita6f1d32121b7ce8b4cb9485f238eb62f23b75c7e (patch)
tree5fba20ea0ee790ac3b9373a237856c89bf4f9152 /gps
parente9034a445991b1fdceb6d536f5415b320c049e6a (diff)
downloadgpsd-a6f1d32121b7ce8b4cb9485f238eb62f23b75c7e.tar.gz
Remove the old latency-profiling machinery.
It hasn't actually worked since we switched protocols to JSON. This diff puts the framework in place for new machinery using timing attributes in the TPV sentence.
Diffstat (limited to 'gps')
-rw-r--r--gps/fake.py2
-rwxr-xr-xgps/gps.py5
2 files changed, 0 insertions, 7 deletions
diff --git a/gps/fake.py b/gps/fake.py
index 182529a5..7843fed6 100644
--- a/gps/fake.py
+++ b/gps/fake.py
@@ -495,8 +495,6 @@ class TestSession:
self.progress("gpsfake: gather(%d)\n" % seconds)
#mark = time.time()
time.sleep(seconds)
- #if self.timings.c_recv_time <= mark:
- # TestSessionError("no sentences received\n")
def cleanup(self):
"We're done, kill the daemon."
self.progress("gpsfake: cleanup()\n")
diff --git a/gps/gps.py b/gps/gps.py
index 3f68dd4e..21866828 100755
--- a/gps/gps.py
+++ b/gps/gps.py
@@ -125,7 +125,6 @@ class gpsdata:
self.devices = []
self.version = None
- self.timings = None
def __repr__(self):
st = "Time: %s (%s)\n" % (self.utc, self.fix.time)
@@ -293,10 +292,6 @@ class gps(gpsdata, gpsjson):
if sat.used:
self.satellites_used += 1
self.valid = ONLINE_SET | SATELLITE_SET
- elif self.data.get("class") == "TIMING":
- self.data["c_recv"] = self.received
- self.data["c_decode"] = time.time()
- self.timings = self.data
def read(self):
"Read and interpret data from the daemon."