mirror of
https://github.com/denoland/deno.git
synced 2025-01-12 17:09:00 -05:00
benching: use performance.now (#385)
This commit is contained in:
parent
8714252916
commit
ad1b95eaf7
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue