Skip to content

Commit

Permalink
Merge pull request #410 from randovania/time
Browse files Browse the repository at this point in the history
Add time to patcher cli
  • Loading branch information
ThanatosGit authored Jul 13, 2024
2 parents ac80b9d + 6bbb16a commit d88582c
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 d88582c

Please sign in to comment.