diff --git a/ctabus/__init__.py b/ctabus/__init__.py index 9eac761..7f605fc 100644 --- a/ctabus/__init__.py +++ b/ctabus/__init__.py @@ -284,6 +284,7 @@ def _main_periodic(args, stop_id, init_data): while not _done: try: try: + s = time.perf_counter() show( data, args.route, @@ -291,7 +292,6 @@ def _main_periodic(args, stop_id, init_data): args.toast and HAS_TOAST, args.notifications and HAS_NOTIFICATION, ) - s = time.perf_counter() timeout = 1 if args.periodic > timeout: timeout = args.periodic