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

Function elapsedMs

src/web-ui/src/shared/utils/timing.ts:29–31  ·  view source on GitHub ↗
(startedAt: number)

Source from the content-addressed store, hash-verified

27}
28
29export function elapsedMs(startedAt: number): number {
30 return roundDurationMs(nowMs() - startedAt);
31}
32
33export function measureSync<T>(task: () => T): MeasuredValue<T> {
34 const startedAt = nowMs();

Callers 15

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

Calls 2

roundDurationMsFunction · 0.85
nowMsFunction · 0.70

Tested by

no test coverage detected