MCPcopy
hub / github.com/codeaashu/claude-code / tick

Function tick

src/ink/components/ClockContext.tsx:18–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16 // tick see the same value (keeps animations synchronized)
17 let tickTime = 0;
18 function tick(): void {
19 tickTime = Date.now() - startTime;
20 for (const onChange of subscribers.keys()) {
21 onChange();
22 }
23 }
24 function updateInterval(): void {
25 const anyKeepAlive = [...subscribers.values()].some(Boolean);
26 if (anyKeepAlive) {

Callers

nothing calls this directly

Calls 2

keysMethod · 0.80
onChangeFunction · 0.50

Tested by

no test coverage detected