MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / addToTotalDurationState

Function addToTotalDurationState

source code/bootstrap/state.ts:545–551  ·  view source on GitHub ↗
(
  duration: number,
  durationWithoutRetries: number,
)

Source from the content-addressed store, hash-verified

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

Callers 1

logAPISuccessAndDurationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected