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

Method time

src/utils/Stats.js:8–10  ·  view source on GitHub ↗
(label)

Source from the content-addressed store, hash-verified

6 }
7
8 time(label) {
9 this.startTimes[label] = process.hrtime();
10 }
11
12 timeEnd(label) {
13 const elapsed = process.hrtime(this.startTimes[label]);

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
_splitMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected