Unverified Commit 491d42bb authored by AUTOMATIC1111's avatar AUTOMATIC1111 Committed by GitHub
Browse files

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

Only start timer when actually starting
parents 45c0f58d 33694bae
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -26,6 +26,9 @@ start = launch_utils.start


def main():
    from modules import timer
    timer.startup_timer.record("start")

    if not args.skip_prepare_environment:
        prepare_environment()

+0 −3
Original line number Diff line number Diff line
@@ -10,9 +10,6 @@ from functools import lru_cache

from modules import cmd_args, errors
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()