From 65dc6c3209643809d9baebb0f9f82d627423d7e5 Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Fri, 9 Jul 2021 21:12:18 -0700 Subject: [PATCH] fixup timing script old-commit-hash: 69160375c6d3bc7160948d4339e1b54018328ccf --- selfdrive/debug/check_timings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/selfdrive/debug/check_timings.py b/selfdrive/debug/check_timings.py index 838cba61e7..000a73b781 100755 --- a/selfdrive/debug/check_timings.py +++ b/selfdrive/debug/check_timings.py @@ -17,8 +17,8 @@ if __name__ == "__main__": msgs = messaging.drain_sock(sock) for m in msgs: ts[s].append(m.logMonoTime / 1e6) - time.sleep(1) if len(ts[s]) == ts[s].maxlen: d = np.diff(ts[s]) - print(f"{s:17} {np.max(d):.2f} {np.max(d):.2f} {np.max(d):.2f} {np.std(d):.2f}") + print(f"{s:17} {np.mean(d):.2f} {np.std(d):.2f} {np.max(d):.2f} {np.min(d):.2f}") + time.sleep(1)