From 6bbb16ae2b0f2ea4a55d6e6bf6d27aa7ca9a6e16 Mon Sep 17 00:00:00 2001 From: dyceron Date: Fri, 12 Jul 2024 17:44:59 -0400 Subject: [PATCH] Add time to patcher cli --- src/open_samus_returns_rando/cli.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/open_samus_returns_rando/cli.py b/src/open_samus_returns_rando/cli.py index 05b6f9f..e47a571 100644 --- a/src/open_samus_returns_rando/cli.py +++ b/src/open_samus_returns_rando/cli.py @@ -2,6 +2,7 @@ import json import logging import logging.config +import time from pathlib import Path from open_samus_returns_rando import samus_returns_patcher @@ -60,9 +61,12 @@ def main() -> None: with args.input_json.open() as f: configuration = json.load(f) + start = time.time() samus_returns_patcher.patch_extracted( args.input_path, args.input_exheader, args.output_path, configuration, ) + end = time.time() + print(f"Patcher took {end - start:.03f} seconds")