MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / useTimer

Function useTimer

source code/context/stats.tsx:194–207  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

192 return t0;
193}
194export function useTimer(name) {
195 const $ = _c(3);
196 const store = useStats();
197 let t0;
198 if ($[0] !== name || $[1] !== store) {
199 t0 = value => store.observe(name, value);
200 $[0] = name;
201 $[1] = store;
202 $[2] = t0;
203 } else {
204 t0 = $[2];
205 }
206 return t0;
207}
208export function useSet(name) {
209 const $ = _c(3);
210 const store = useStats();

Callers

nothing calls this directly

Calls 1

useStatsFunction · 0.85

Tested by

no test coverage detected