Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cortex-js/compute-engine
/ timeToString
Function
timeToString
test/utils.ts:355–359 ·
view source on GitHub ↗
(t: number)
Source
from the content-addressed store, hash-verified
353
n /= 1024;
354
return
n.toFixed(2) +
' TB'
;
355
}
356
357
function
timeToString(t: number): string {
358
if
(t < 1000)
return
t.toFixed(2) +
' ms'
;
359
t /= 1000;
360
return
t.toFixed(2) +
' s'
;
361
}
362
Callers
1
benchmark
Function · 0.85
Calls
1
toFixed
Method · 0.80
Tested by
no test coverage detected