check_timings.py: start printing immediately

old-commit-hash: a7cc34fd77f780d5c45abb0d0bfaefd000f96b2b
This commit is contained in:
Adeeb Shihadeh
2021-09-13 20:08:43 -07:00
parent c422cce205
commit 0c29c7928b
+1 -1
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)