Commit 491d42bb authored by AUTOMATIC1111's avatar AUTOMATIC1111 Committed by GitHub

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

Only start timer when actually starting
parents 45c0f58d 33694bae
...@@ -26,6 +26,9 @@ start = launch_utils.start ...@@ -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()
......
...@@ -10,9 +10,6 @@ from functools import lru_cache ...@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment