MCPcopy Create free account
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / run

Function run

assets/js/StopWatch.js:18–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16 document.getElementById('resetlaps').classList.add("hidden");
17}
18function run() {
19 stopwatchEl.textContent = getTimer();
20 ms++;
21 if (ms == 100) {
22 ms = 0;
23 s++;
24 }
25 if (s == 60) {
26 s = 0;
27 m++;
28 }
29}
30function stop() {
31 clearInterval(timer);
32 timer = false;

Callers

nothing calls this directly

Calls 1

getTimerFunction · 0.85

Tested by

no test coverage detected