Skip to content

Commit

Permalink
fix python version support
Browse files Browse the repository at this point in the history
  • Loading branch information
LivInTheLookingGlass committed Aug 7, 2024
1 parent 939ce32 commit 29d6f4c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions python/src/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from importlib import import_module
from sys import modules
from time import perf_counter_ns
from time import perf_counter
from typing import Callable, Dict, Union

from . import lib
Expand All @@ -21,7 +21,7 @@

def run_problems() -> None: # pragma: no cover
for i, p in problems.items():
start = perf_counter_ns()
start = perf_counter()
answer = p()
stop = perf_counter_ns()
print(f'The answer to problem {i:04} is {answer!r} (found in {(stop - start) / 1000:,}μs)') # noqa
stop = perf_counter()
print(f'The answer to problem {i:04} is {answer!r} (found in {(stop - start) * 1000:,}ms)') # noqa

0 comments on commit 29d6f4c

Please sign in to comment.