Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/scriptscat/scriptcat
/ fmtMs
Function
fmtMs
example/tests/gm_xhr_test.js:2017–2019 ·
view source on GitHub ↗
(ms)
Source
from the content-addressed store, hash-verified
2015
}
2016
2017
function
fmtMs(ms) {
2018
return
ms < 1000 ? `${ms | 0}ms` : `${(ms / 1000).toFixed(2)}s`;
2019
}
2020
2021
// Auto-run once after a short delay to let the page settle
2022
setTimeout(() => {
Callers
1
runAll
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected