diff options
author | Vincent LE GOFF <g_n_s@hotmail.fr> | 2019-04-08 22:22:40 +0200 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-04-08 16:22:40 -0400 |
commit | 734cf781c6e606a8a836863a391c94cf4fad22d7 (patch) | |
tree | d55d5212bdeedf4b9b1e53893478489ec960551a /js/performance_test.ts | |
parent | f7fdb90fd51e340ea598c055bb3573d3cdfbdaa8 (diff) |
Allow high precision performance.now() (#1977)
Diffstat (limited to 'js/performance_test.ts')
-rw-r--r-- | js/performance_test.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/performance_test.ts b/js/performance_test.ts index 154dadbbe..8f9dbc990 100644 --- a/js/performance_test.ts +++ b/js/performance_test.ts @@ -1,7 +1,7 @@ // Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. -import { test, assert } from "./test_util.ts"; +import { testPerm, assert } from "./test_util.ts"; -test(function now() { +testPerm({ highPrecision: false }, function now() { const start = performance.now(); setTimeout(() => { const end = performance.now(); |