Skip to content

Commit

Permalink
Add time to patcher cli
Browse files Browse the repository at this point in the history
  • Loading branch information
dyceron committed Jul 12, 2024
1 parent 29027f2 commit 6bbb16a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/open_samus_returns_rando/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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")

0 comments on commit 6bbb16a

Please sign in to comment.