MCPcopy Index your code
hub / github.com/monkeytypegame/monkeytype / premid

Function premid

frontend/src/ts/test/test-timer.ts:139–147  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

137}
138
139function premid(): void {
140 if (timerDebug) console.time("premid");
141 const premidSecondsLeft = document.querySelector("#premidSecondsLeft");
142
143 if (premidSecondsLeft !== null) {
144 premidSecondsLeft.innerHTML = (Config.time - Time.get()).toString();
145 }
146 if (timerDebug) console.timeEnd("premid");
147}
148
149function monkey(wpmAndRaw: { wpm: number; raw: number }): void {
150 if (timerDebug) console.time("update monkey");

Callers 1

timerStepFunction · 0.85

Calls 2

toStringMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected