diff --git a/testing/bench.ts b/testing/bench.ts index 5b396df0e5..3bb62526d9 100644 --- a/testing/bench.ts +++ b/testing/bench.ts @@ -61,10 +61,10 @@ function assertTiming(clock: BenchmarkClock): void { function createBenchmarkTimer(clock: BenchmarkClock): BenchmarkTimer { return { start(): void { - clock.start = Date.now(); + clock.start = performance.now(); }, stop(): void { - clock.stop = Date.now(); + clock.stop = performance.now(); } }; }