MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / formatMs

Function formatMs

scripts/bench/agent-control-benchmark.mjs:1252–1257  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

1250}
1251
1252function formatMs(value) {
1253 if (typeof value !== "number" || Number.isNaN(value)) {
1254 return "n/a";
1255 }
1256 return `${Math.round(value)} ms`;
1257}
1258
1259function roundMs(value) {
1260 return Math.round(value * 100) / 100;

Callers 2

sampleFunction · 0.70
buildReportFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected