From e23a423f6c0cb7bd1d51c007b5351870e50f76d4 Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Wed, 22 Mar 2023 19:35:04 -0700 Subject: [PATCH] time it --- selfdrive/car/fw_versions.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/selfdrive/car/fw_versions.py b/selfdrive/car/fw_versions.py index 872bdcdb0b..0c97618542 100755 --- a/selfdrive/car/fw_versions.py +++ b/selfdrive/car/fw_versions.py @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +import time from collections import defaultdict from typing import Any, Optional, Set, Tuple from tqdm import tqdm @@ -275,7 +276,9 @@ def get_fw_versions(logcan, sendcan, query_brand=None, extra=None, timeout=0.1, continue # Toggle OBD multiplexing for each request + _t = time.perf_counter() set_obd_multiplexing(params, not r.non_obd) + print('Took {} s to change OBD multiplexing!'.format(time.perf_counter() - _t)) try: addrs = [(a, s) for (b, a, s) in addr_chunk if b in (brand, 'any') and