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