mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 12:19:12 +00:00
Merge deno_cli_snapshots into deno_cli (#3064)
This commit is contained in:
parent
9049213867
commit
b81e5db17a
148 changed files with 38 additions and 83 deletions
10
cli/js/performance_test.ts
Normal file
10
cli/js/performance_test.ts
Normal file
|
@ -0,0 +1,10 @@
|
|||
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
|
||||
import { testPerm, assert } from "./test_util.ts";
|
||||
|
||||
testPerm({ hrtime: false }, function now(): void {
|
||||
const start = performance.now();
|
||||
setTimeout((): void => {
|
||||
const end = performance.now();
|
||||
assert(end - start >= 10);
|
||||
}, 10);
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue