Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/prisma/prisma
/ formatms
Function
formatms
packages/internals/src/utils/formatms.ts:5–11 ·
view source on GitHub ↗
(ms: number)
Source
from the content-addressed store, hash-verified
3
* Returns a string like
"3ms"
or
"3.10s"
.
4
*/
5
export
function
formatms(ms: number): string {
6
if
(ms < 1000) {
7
return
`${ms}ms`
8
}
9
10
return
(ms / 1000).toFixed(2) +
's'
11
}
Callers
4
getGeneratorSuccessMessage
Function · 0.90
parse
Method · 0.90
parse
Method · 0.90
parse
Method · 0.90
Calls
1
toFixed
Method · 0.80
Tested by
no test coverage detected