Function
execTimed
(description: string, func: () => Promise<void>)
Source from the content-addressed store, hash-verified
| 70 | export class ExpandingRowBenchmarkModule {} |
| 71 | |
| 72 | export 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 | |
| 79 | export async function nextTick(delay = 1) { |
| 80 | return new Promise<void>((res, rej) => { |
Tested by
no test coverage detected
Used in the wild real call sites across dependent graphs
searching dependent graphs…