time()
time(
name,f):any
Defined in: src/utils.ts:471
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
- a value which f returns