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

Method constructor

src/utils/Stats.ts:7–11  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5 [label: string]: unknown;
6
7 constructor() {
8 Object.defineProperties(this, {
9 startTimes: { value: {} },
10 })
11 }
12
13 time(label: string): void {
14 this.startTimes[label] = process.hrtime()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected