@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 04:45 UTC

main
ts 5 lines 255 Bytes
Raw
1 export function formatDiagnosticsDuration(value: number): string {
2 const milliseconds = Math.round(value);
3 if (milliseconds < 1_000) return `${milliseconds} ms`;
4 return `${(value / 1_000).toFixed(value >= 10_000 ? 1 : 2).replace(/\.0+$/, "")} s`;
5 }