From 33694baea1a886021e19da27b4ff41898428cbbd Mon Sep 17 00:00:00 2001 From: Jabasukuriputo Wang Date: Fri, 21 Jul 2023 17:15:44 +0800 Subject: [PATCH] avoid importing timer when it is not strictly needed --- launch.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/launch.py b/launch.py index 370f2bf3c..114466cf7 100644 --- a/launch.py +++ b/launch.py @@ -1,4 +1,4 @@ -from modules import launch_utils, timer +from modules import launch_utils args = launch_utils.args @@ -26,6 +26,7 @@ start = launch_utils.start def main(): + from modules import timer timer.startup_timer.record("start") if not args.skip_prepare_environment: