Function
duration
(
name: string,
startedAt: number,
fields?: Record<string, string | number | boolean | undefined>,
)
Source from the content-addressed store, hash-verified
| 7 | } |
| 8 | |
| 9 | export function duration( |
| 10 | name: string, |
| 11 | startedAt: number, |
| 12 | fields?: Record<string, string | number | boolean | undefined>, |
| 13 | ) { |
| 14 | if (!enabled) return |
| 15 | write(name, performance.now() - startedAt, fields) |
| 16 | } |
| 17 | |
| 18 | export async function measure<T>( |
| 19 | name: string, |
Callers
nothing calls this directly
Tested by
no test coverage detected