avoid importing timer when it is not strictly needed

pull/11856/head
Jabasukuriputo Wang 2023-07-21 17:15:44 +08:00 committed by GitHub
parent fc3bdf8c11
commit 33694baea1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

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: