MCPcopy Create free account
hub / github.com/dailydotdev/apps / stopTimer

Function stopTimer

packages/shared/src/features/monetization/useVisibleTime.ts:56–59  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

54 let timer: ReturnType<typeof setTimeout> | undefined;
55
56 const stopTimer = () => {
57 globalThis.clearTimeout(timer);
58 timer = undefined;
59 };
60
61 const report = () => {
62 const now = Date.now();

Callers 3

evaluateFunction · 0.70
onPageHideFunction · 0.70
useVisibleTimeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected