Skip to content

Commit

Permalink
benching: use performance.now (#385)
Browse files Browse the repository at this point in the history
  • Loading branch information
zekth authored and ry committed May 10, 2019
1 parent 8714252 commit ad1b95e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions testing/bench.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
};
}
Expand Down

0 comments on commit ad1b95e

Please sign in to comment.