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

Function logElapsed

src/web-ui/src/shared/utils/timing.ts:72–79  ·  view source on GitHub ↗
(
  logger: LoggerLike,
  message: string,
  startedAt: number,
  options: TimedLogOptions = {}
)

Source from the content-addressed store, hash-verified

70}
71
72export function logElapsed(
73 logger: LoggerLike,
74 message: string,
75 startedAt: number,
76 options: TimedLogOptions = {}
77): number {
78 return logDuration(logger, message, elapsedMs(startedAt), options);
79}
80
81export function measureSyncAndLog<T>(
82 logger: LoggerLike,

Callers 4

initializeBeforeRenderFunction · 0.90
initializeAfterRenderFunction · 0.90
startApplicationFunction · 0.90
sendDebugProbeFunction · 0.90

Calls 2

logDurationFunction · 0.85
elapsedMsFunction · 0.85

Tested by

no test coverage detected