()
| 12 | let performance: typeof PerformanceType | null = null |
| 13 | |
| 14 | export function getPerformance(): typeof PerformanceType { |
| 15 | if (!performance) { |
| 16 | // eslint-disable-next-line @typescript-eslint/no-require-imports |
| 17 | performance = require('perf_hooks').performance |
| 18 | } |
| 19 | return performance! |
| 20 | } |
| 21 | |
| 22 | export function formatMs(ms: number): string { |
| 23 | return ms.toFixed(3) |
no outgoing calls
no test coverage detected