diff options
Diffstat (limited to 'cli/js/performance.ts')
-rw-r--r-- | cli/js/performance.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cli/js/performance.ts b/cli/js/performance.ts index 37cca35ab..981be64d4 100644 --- a/cli/js/performance.ts +++ b/cli/js/performance.ts @@ -1,5 +1,4 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. -import * as dispatch from "./dispatch.ts"; import { sendSync } from "./dispatch_json.ts"; interface NowResponse { @@ -16,7 +15,7 @@ export class Performance { * console.log(`${t} ms since start!`); */ now(): number { - const res = sendSync(dispatch.OP_NOW) as NowResponse; + const res = sendSync("op_now") as NowResponse; return res.seconds * 1e3 + res.subsecNanos / 1e6; } } |