MCPcopy Create free account
hub / github.com/garrytan/gstack / msToStr

Function msToStr

test/helpers/benchmark-runner.ts:156–159  ·  view source on GitHub ↗
(ms: number)

Source from the content-addressed store, hash-verified

154}
155
156function msToStr(ms: number): string {
157 if (ms < 1000) return `${ms}ms`;
158 return `${(ms / 1000).toFixed(1)}s`;
159}
160
161function fmtCost(usd?: number): string {
162 if (usd === undefined) return '-';

Callers 2

formatTableFunction · 0.85
formatMarkdownFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected