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

Method measureAsync

src/utils/viewOptimizations.ts:249–252  ·  view source on GitHub ↗
(operation: string, fn: () => Promise<T>)

Source from the content-addressed store, hash-verified

247 }
248
249 measureAsync<T>(operation: string, fn: () => Promise<T>): Promise<T> {
250 this.startTimer(operation);
251 return fn().finally(() => this.endTimer(operation));
252 }
253}
254
255function areTimeEntriesEqual(a?: TimeEntry[], b?: TimeEntry[]): boolean {

Callers 2

profileAsyncMethod · 0.45

Calls 2

startTimerMethod · 0.95
endTimerMethod · 0.95

Tested by

no test coverage detected