diff options
Diffstat (limited to 'testing/bench.ts')
| -rw-r--r-- | testing/bench.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testing/bench.ts b/testing/bench.ts index 5b396df0e..3bb62526d 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(); } }; } |
