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

Function formatDuration

scripts/integration/js-api.mjs:734–738  ·  view source on GitHub ↗
(ms)

Source from the content-addressed store, hash-verified

732}
733
734function formatDuration(ms) {
735 if (ms >= 60_000) return `${(ms / 60_000).toFixed(2)}m`;
736 if (ms >= 1000) return `${(ms / 1000).toFixed(2)}s`;
737 return `${Math.round(ms)}ms`;
738}
739
740function runJson(command, args, options = {}) {
741 return JSON.parse(runText(command, args, options));

Callers 1

printTimingSummaryFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected