diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2011-09-20 22:52:57 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2011-09-20 22:52:57 -0400 |
commit | a6f1d32121b7ce8b4cb9485f238eb62f23b75c7e (patch) | |
tree | 5fba20ea0ee790ac3b9373a237856c89bf4f9152 /gps | |
parent | e9034a445991b1fdceb6d536f5415b320c049e6a (diff) | |
download | gpsd-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.py | 2 | ||||
-rwxr-xr-x | gps/gps.py | 5 |
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") @@ -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." |