check_timings.py: start printing immediately

old-commit-hash: a7cc34fd77
vw-mqb-aeb
Adeeb Shihadeh 4 years ago
parent c422cce205
commit 0c29c7928b
  1. 2
      selfdrive/debug/check_timings.py

@ -18,7 +18,7 @@ if __name__ == "__main__":
for m in msgs:
ts[s].append(m.logMonoTime / 1e6)
if len(ts[s]) == ts[s].maxlen:
if len(ts[s]):
d = np.diff(ts[s])
print(f"{s:17} {np.mean(d):.2f} {np.std(d):.2f} {np.max(d):.2f} {np.min(d):.2f}")
time.sleep(1)

Loading…
Cancel
Save