(logEnd = false, now = performance.now())
| 123 | } |
| 124 | |
| 125 | export function clear(logEnd = false, now = performance.now()): void { |
| 126 | stopped = true; |
| 127 | clearLowFpsMode(); |
| 128 | newTimer.reset(); |
| 129 | if (timer !== null) clearTimeout(timer); |
| 130 | if (logEnd) { |
| 131 | logTestEvent("timer", now, { |
| 132 | event: "end", |
| 133 | timer: Time.get(), |
| 134 | date: new Date().getTime(), |
| 135 | }); |
| 136 | } |
| 137 | } |
| 138 | |
| 139 | function premid(): void { |
| 140 | if (timerDebug) console.time("premid"); |
nothing calls this directly
no test coverage detected