Code & Deploy
siGit Code
Git Hosting
Toggle menu
siGit Code
Git Hosting
Sign in
Sign in
@devries-cameron20
/
t3code-1
Fork
0
The best way to control Claude Code, Codex and more from any computer or phone
t3code-1
/
apps
/
web
/
src
/
components
/
settings
/
DiagnosticsSettings.logic.ts
Code
Commits
Issues
Pulls
Cloud Agent
CICD
main
main
ts
5 lines
255 Bytes
Copy permalink
Copy
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
}