We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c0b306 commit 8107662Copy full SHA for 8107662
1 file changed
codetiming/_timer.py
@@ -35,14 +35,14 @@ def __post_init__(self) -> None:
35
def start(self) -> None:
36
"""Start a new timer"""
37
if self._start_time is not None:
38
- raise TimerError(f"Timer is running. Use .stop() to stop it")
+ raise TimerError("Timer is running. Use .stop() to stop it")
39
40
self._start_time = time.perf_counter()
41
42
def stop(self) -> float:
43
"""Stop the timer, and report the elapsed time"""
44
if self._start_time is None:
45
- raise TimerError(f"Timer is not running. Use .start() to start it")
+ raise TimerError("Timer is not running. Use .start() to start it")
46
47
# Calculate elapsed time
48
self.last = time.perf_counter() - self._start_time
0 commit comments