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

Method time

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

Source from the content-addressed store, hash-verified

11 }
12
13 time(label: string): void {
14 this.startTimes[label] = process.hrtime()
15 }
16
17 timeEnd(label: string): void {
18 const elapsed = process.hrtime(this.startTimes[label])

Callers 10

appendLeftMethod · 0.80
appendRightMethod · 0.80
moveMethod · 0.80
updateMethod · 0.80
prependLeftMethod · 0.80
prependRightMethod · 0.80
removeMethod · 0.80
resetMethod · 0.80
_splitMethod · 0.80
Stats.test.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected