timeAsync()
timeAsync<
T>(name,f):Promise<T>
Defined in: js-api/src/utils.ts:502
Times the execution of asyncronous function f
Type Parameters
| Type Parameter |
|---|
T |
Parameters
| Parameter | Type | Description |
|---|---|---|
name | string | a label for the execution time to display |
f | () => Promise<T> | async function with no parameters that will get measured |
Returns
Promise<T>
a promise for the value which f returns