We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87292fa commit 05c1e1eCopy full SHA for 05c1e1e
python-callable-instances/timing.py
@@ -18,7 +18,7 @@ def __init__(self, repetitions=1):
18
19
20
def __call__(self, func):
21
- def _timer(*args, **kwargs):
+ def timer(*args, **kwargs):
22
result = None
23
total_time = 0
24
print(f"Running {func.__name__}() {self.repetitions} times")
@@ -34,4 +34,4 @@ def _timer(*args, **kwargs):
34
)
35
return result
36
37
- return _timer
+ return timer
0 commit comments