time()
time(name
, f
): any
Times the execution of function f
Parameters
Parameter | Type | Description |
---|
name | string | a label for the execution time to display |
f | Function | function with no parameters that will get measured |
Returns
any
Source
src/utils.ts:443