MCPcopy Index your code
hub / github.com/di-sukharev/opencommit / fmtShort

Function fmtShort

out/cli.cjs:9330–9345  ·  view source on GitHub ↗
(ms)

Source from the content-addressed store, hash-verified

9328 }
9329 }
9330 function fmtShort(ms) {
9331 var msAbs = Math.abs(ms);
9332 if (msAbs >= d7) {
9333 return Math.round(ms / d7) + "d";
9334 }
9335 if (msAbs >= h4) {
9336 return Math.round(ms / h4) + "h";
9337 }
9338 if (msAbs >= m5) {
9339 return Math.round(ms / m5) + "m";
9340 }
9341 if (msAbs >= s2) {
9342 return Math.round(ms / s2) + "s";
9343 }
9344 return ms + "ms";
9345 }
9346 function fmtLong(ms) {
9347 var msAbs = Math.abs(ms);
9348 if (msAbs >= d7) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…