timeAsync()
timeAsync(
name
,f
):Promise
<any
>
Times the execution of asyncronous function f
Parameters
Parameter | Type | Description |
---|---|---|
name | string | a label for the execution time to display |
f | Function | async function with no parameters that will get measured |
Returns
Promise
<any
>
- a promise for the value which f returns