diff --git a/gps_client.py b/gps_client.py index 49d8e08c..e5074232 100644 --- a/gps_client.py +++ b/gps_client.py @@ -13,10 +13,10 @@ import time session = gps.gps(mode=gps.WATCH_ENABLE) -start = time.perf_timer() +start = time.perf_counter() try: - while session.read() == 0 and ((time.perf_timer(0 - start)) < 1): + while session.read() == 0 and ((time.perf_counter(0 - start)) < 1): print(gps.MODE_SET) print(session.valid) if not (gps.MODE_SET & session.valid):