From 91b606aaae23bcb790b55adc5fe70a182a37d564 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Tue, 25 Feb 2020 09:14:27 -0500 Subject: Clean up how we use opIds (#4118) --- cli/js/performance.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'cli/js/performance.ts') 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; } } -- cgit v1.2.3