mirror of
https://github.com/bertptrs/adventofcode.git
synced 2025-12-26 21:30:31 +01:00
Minor fixes
This commit is contained in:
@@ -22,11 +22,11 @@ from aoc import days
|
||||
@click.argument("day", required=True)
|
||||
def main(day: int, timing: bool, data: IO[str]) -> None:
|
||||
runner_class = days.get_runner(day)
|
||||
data = data.read()
|
||||
contents = data.read()
|
||||
|
||||
start = time.perf_counter_ns()
|
||||
|
||||
part1, part2 = runner_class.run_both(data)
|
||||
part1, part2 = runner_class.run_both(contents)
|
||||
|
||||
if timing:
|
||||
elapsed = time.perf_counter_ns() - start
|
||||
|
||||
Reference in New Issue
Block a user