Skip to content

Commit 6889335

Browse files
committed
Final QA updates
1 parent 027fff3 commit 6889335

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python-callable-instances/timing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ def timer(*args, **kwargs):
2222
total_time = 0
2323
print(f"Running {func.__name__}() {self.repetitions} times")
2424
for _ in range(self.repetitions):
25-
start = time.time()
25+
start = time.perf_counter()
2626
result = func(*args, **kwargs)
27-
end = time.time()
27+
end = time.perf_counter()
2828
total_time += end - start
2929
average_time = total_time / self.repetitions
3030
print(

0 commit comments

Comments
 (0)