avoid importing timer when it is not strictly needed

This commit is contained in:
Jabasukuriputo Wang
2023-07-21 17:15:44 +08:00
committed by GitHub
parent fc3bdf8c11
commit 33694baea1

View File

@@ -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: