mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-02-05 13:12:55 +08:00
Merge pull request #11856 from wfjsw/move-start-timer
Only start timer when actually starting
This commit is contained in:
commit
491d42bb1c
@ -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
|
|||||||
|
|
||||||
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()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user