MCPcopy Index your code
hub / github.com/callumalpass/tasknotes / endTimer

Method endTimer

src/utils/viewOptimizations.ts:239–247  ·  view source on GitHub ↗
(operation: string, logThreshold = 100)

Source from the content-addressed store, hash-verified

237 }
238
239 endTimer(operation: string, logThreshold = 100): number {
240 const startTime = this.startTimes.get(operation);
241 if (!startTime) return 0;
242
243 const elapsed = performance.now() - startTime;
244 this.startTimes.delete(operation);
245
246 return elapsed;
247 }
248
249 measureAsync<T>(operation: string, fn: () => Promise<T>): Promise<T> {
250 this.startTimer(operation);

Callers 1

measureAsyncMethod · 0.95

Calls 3

nowMethod · 0.80
getMethod · 0.65
deleteMethod · 0.65

Tested by

no test coverage detected