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

Function getTimer

assets/js/StopWatch.js:49–57  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47 document.getElementById('reset').classList.add('hidden');
48}
49function getTimer() {
50 return (
51 (m < 10 ? "0" + m : m) +
52 ":" +
53 (s < 10 ? "0" + s : s) +
54 ":" +
55 (ms < 10 ? "0" + ms : ms)
56 );
57}
58function lap() {
59 if (timer) {
60 let li = document.createElement("li");

Callers 3

runFunction · 0.85
resetFunction · 0.85
lapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected