Merge pull request #11856 from wfjsw/move-start-timer

Only start timer when actually starting
This commit is contained in:
AUTOMATIC1111 2023-07-22 12:19:36 +03:00 committed by GitHub
commit 491d42bb1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -26,6 +26,9 @@ start = launch_utils.start
def main(): def main():
from modules import timer
timer.startup_timer.record("start")
if not args.skip_prepare_environment: if not args.skip_prepare_environment:
prepare_environment() prepare_environment()

View File

@ -10,9 +10,6 @@ from functools import lru_cache
from modules import cmd_args, errors from modules import cmd_args, errors
from modules.paths_internal import script_path, extensions_dir from modules.paths_internal import script_path, extensions_dir
from modules import timer
timer.startup_timer.record("start")
args, _ = cmd_args.parser.parse_known_args() args, _ = cmd_args.parser.parse_known_args()