blob: ac682364efd4205a61e7a31bf84a4f1c103e3e90 (
plain)
1
2
3
4
5
6
7
8
9
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);
});
|