MCPcopy Index your code
hub / github.com/codeaashu/claude-code / addToTotalDurationState

Function addToTotalDurationState

src/bootstrap/state.ts:543–549  ·  view source on GitHub ↗
(
  duration: number,
  durationWithoutRetries: number,
)

Source from the content-addressed store, hash-verified

541}
542
543export function addToTotalDurationState(
544 duration: number,
545 durationWithoutRetries: number,
546): void {
547 STATE.totalAPIDuration += duration
548 STATE.totalAPIDurationWithoutRetries += durationWithoutRetries
549}
550
551export function resetTotalDurationStateAndCost_FOR_TESTS_ONLY(): void {
552 STATE.totalAPIDuration = 0

Callers 1

logAPISuccessAndDurationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected