Skip to main content

timeAsync()

timeAsync(name, f): Promise<any>

Times the execution of asyncronous function f

Parameters

ParameterTypeDescription
namestringa label for the execution time to display
fFunctionasync function with no parameters that will get measured

Returns

Promise<any>

  • a promise for the value which f returns

Async

Source

src/utils.ts:460