MCPcopy Index your code
hub / github.com/scriptscat/scriptcat / fmtMs

Function fmtMs

example/tests/gm_download_test.js:96–98  ·  view source on GitHub ↗
(ms)

Source from the content-addressed store, hash-verified

94 }
95
96 function fmtMs(ms) {
97 return ms < 1000 ? `${ms | 0}ms` : `${(ms / 1000).toFixed(2)}s`;
98 }
99
100 // ---------- Settings (persisted) ----------
101 // Prefix is the sub-folder under the user's Downloads dir. Trailing slash auto-appended.

Callers 1

runOneFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected