MCPcopy Create free account
hub / github.com/Rich-Harris/magic-string / timeEnd

Method timeEnd

src/utils/Stats.ts:17–23  ·  view source on GitHub ↗
(label: string)

Source from the content-addressed store, hash-verified

15 }
16
17 timeEnd(label: string): void {
18 const elapsed = process.hrtime(this.startTimes[label])
19
20 if (!this[label])
21 this[label] = 0
22 this[label] = (this[label] as number) + elapsed[0] * 1e3 + elapsed[1] * 1e-6
23 }
24}

Callers 9

appendLeftMethod · 0.80
appendRightMethod · 0.80
moveMethod · 0.80
updateMethod · 0.80
prependLeftMethod · 0.80
prependRightMethod · 0.80
removeMethod · 0.80
resetMethod · 0.80
_splitChunkMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected