timed
timed<
T>(label,fn):T
Defined in: src/instrument.ts:43
Wrap a synchronous function with wall-time measurement.
Logs [profile] <label> <N>ms when over 250ms. Always returns/re-throws as-is.
When profiling is off, calls fn() directly with zero overhead.
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”string
() => T
Returns
Section titled “Returns”T