MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / formatDuration

Function formatDuration

packages/cli/src/ui/format.ts:9–15  ·  view source on GitHub ↗
(ms: number)

Source from the content-addressed store, hash-verified

7}
8
9export function formatDuration(ms: number): string {
10 const seconds = ms / 1000;
11 if (seconds < 60) return `${seconds.toFixed(1)}s`;
12 const minutes = Math.floor(seconds / 60);
13 const remaining = seconds - minutes * 60;
14 return `${minutes}m ${remaining.toFixed(1)}s`;
15}
16
17/**
18 * Build the detail portion of the render-complete summary (everything after the

Callers 4

runFunction · 0.50
maybeUploadProjectFunction · 0.50
formatTickLineFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected