MCPcopy Index your code
hub / github.com/Doorman11991/smallcode / ms

Function ms

bench/diff.js:166–166  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

164
165function pct(n) { return `${(n * 100).toFixed(1)}%`; }
166function ms(n) { return `${(n / 1000).toFixed(1)}s`; }
167function signed(n, digits = 3) {
168 const s = n.toFixed(digits);
169 return n >= 0 ? `+${s}` : s;

Callers 1

renderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected