MCPcopy Create free account
hub / github.com/Noumena-Network/code / addToTotalDurationState

Function addToTotalDurationState

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

Source from the content-addressed store, hash-verified

557}
558
559export function addToTotalDurationState(
560 duration: number,
561 durationWithoutRetries: number,
562): void {
563 STATE.totalAPIDuration += duration
564 STATE.totalAPIDurationWithoutRetries += durationWithoutRetries
565}
566
567export function resetTotalDurationStateAndCost_FOR_TESTS_ONLY(): void {
568 STATE.totalAPIDuration = 0

Callers 1

logAPISuccessAndDurationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected