MCPcopy Index your code
hub / github.com/angular/angular / execTimed

Function execTimed

modules/benchmarks/src/expanding_rows/benchmark.ts:72–77  ·  view source on GitHub ↗
(description: string, func: () => Promise<void>)

Source from the content-addressed store, hash-verified

70export class ExpandingRowBenchmarkModule {}
71
72export async function execTimed(description: string, func: () => Promise<void>) {
73 console.time(description);
74 await func();
75 await nextTick(200);
76 console.timeEnd(description);
77}
78
79export async function nextTick(delay = 1) {
80 return new Promise<void>((res, rej) => {

Callers 2

runAllMethod · 0.85
doInitMethod · 0.85

Calls 4

nextTickFunction · 0.85
funcFunction · 0.50
timeMethod · 0.45
timeEndMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…