check_timings.py: start printing immediately

This commit is contained in:
Adeeb Shihadeh
2021-09-13 20:08:43 -07:00
parent 7081ab4fb7
commit a7cc34fd77

View File

@@ -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)