MCPcopy Create free account
hub / github.com/freecodexyz/free-code / formatSecondsShort

Function formatSecondsShort

src/utils/format.ts:30–32  ·  view source on GitHub ↗
(ms: number)

Source from the content-addressed store, hash-verified

28 * where the fractional second is meaningful (TTFT, hook durations, etc.).
29 */
30export function formatSecondsShort(ms: number): string {
31 return `${(ms / 1000).toFixed(1)}s`
32}
33
34export function formatDuration(
35 ms: number,

Callers 4

StopHookSummaryMessageFunction · 0.85
_temp3Function · 0.85
_temp2Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected