(run: Run)
| 198 | } |
| 199 | |
| 200 | export function elapsed(run: Run): string { |
| 201 | if (!run.end_time) return '' |
| 202 | const elapsed = run.end_time - run.start_time |
| 203 | if (elapsed < 1000) { |
| 204 | return `${elapsed}ms` |
| 205 | } |
| 206 | return `${(elapsed / 1000).toFixed(2)}s` |
| 207 | } |
| 208 | |
| 209 | export class ConsoleCallbackHandler extends BaseTracer { |
| 210 | name = 'console_callback_handler' as const |
no outgoing calls
no test coverage detected