MCPcopy Create free account
hub / github.com/violentmonkey/violentmonkey / checkTime

Function checkTime

src/common/util.js:28–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26 let callback;
27 time = Math.max(0, +time || 0);
28 function checkTime() {
29 timer = null;
30 if (performance.now() >= startTime) callback();
31 else checkTimer();
32 }
33 function checkTimer() {
34 if (!timer) {
35 const delta = startTime - performance.now();

Callers

nothing calls this directly

Calls 1

checkTimerFunction · 0.85

Tested by

no test coverage detected