MCPcopy
hub / github.com/callumalpass/tasknotes / startTimer

Method startTimer

src/utils/viewOptimizations.ts:235–237  ·  view source on GitHub ↗
(operation: string)

Source from the content-addressed store, hash-verified

233 private startTimes = new Map<string, number>();
234
235 startTimer(operation: string): void {
236 this.startTimes.set(operation, performance.now());
237 }
238
239 endTimer(operation: string, logThreshold = 100): number {
240 const startTime = this.startTimes.get(operation);

Callers 1

measureAsyncMethod · 0.95

Calls 2

nowMethod · 0.80
setMethod · 0.65

Tested by

no test coverage detected