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

Function roundDurationMs

src/web-ui/src/shared/utils/timing.ts:25–27  ·  view source on GitHub ↗
(durationMs: number)

Source from the content-addressed store, hash-verified

23}
24
25export function roundDurationMs(durationMs: number): number {
26 return Math.round(durationMs * 10) / 10;
27}
28
29export function elapsedMs(startedAt: number): number {
30 return roundDurationMs(nowMs() - startedAt);

Callers 9

optionalRoundedFunction · 0.90
markPhaseMethod · 0.90
recordApiCallMethod · 0.90
buildApiSummaryMethod · 0.90
recordReactRenderProfileFunction · 0.90
scheduleNextFrameFunction · 0.90
elapsedMsFunction · 0.85
logDurationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected