Skip to content

Commit

Permalink
fix: Timer.reset
Browse files Browse the repository at this point in the history
  • Loading branch information
gnlow committed Dec 30, 2023
1 parent 216ce22 commit 5c475e1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Timer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ export class Timer {
}
reset() {
this.acc = 0
this.checkpoint = Date.now()
if (this.checkpoint) {
this.checkpoint = Date.now()
}
}
}

0 comments on commit 5c475e1

Please sign in to comment.