Skip to content

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.

T

string

() => T

T