mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-18 23:33:58 +08:00
check_timings.py: start printing immediately
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user