MCPcopy Create free account
hub / github.com/GCWing/BitFun / nowMs

Function nowMs

src/web-ui/src/shared/utils/timing.ts:21–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19}
20
21export function nowMs(): number {
22 return typeof performance !== 'undefined' ? performance.now() : Date.now();
23}
24
25export function roundDurationMs(durationMs: number): number {
26 return Math.round(durationMs * 10) / 10;

Callers 15

traceStartupStepFunction · 0.90
initializeBeforeRenderFunction · 0.90
initializeAfterRenderFunction · 0.90
startApplicationFunction · 0.90
initializeMethod · 0.90
loadCurrentLocaleMethod · 0.90
initializeMethod · 0.90
executeRequestMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected