From 5c475e15998fa2bde0407480fe6f6a277d1db056 Mon Sep 17 00:00:00 2001 From: Gnlow Date: Sat, 30 Dec 2023 18:02:11 +0900 Subject: [PATCH] fix: Timer.reset --- src/Timer.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Timer.ts b/src/Timer.ts index 446ceb6..c87b25c 100644 --- a/src/Timer.ts +++ b/src/Timer.ts @@ -16,6 +16,8 @@ export class Timer { } reset() { this.acc = 0 - this.checkpoint = Date.now() + if (this.checkpoint) { + this.checkpoint = Date.now() + } } } \ No newline at end of file