diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2020-02-25 09:14:27 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-25 09:14:27 -0500 |
commit | 91b606aaae23bcb790b55adc5fe70a182a37d564 (patch) | |
tree | 16b56a21ffcb3991569eda984fbd14073bdbd3ae /cli/js/performance.ts | |
parent | 805992b14a65a6dbfb857dea6d9b657477de043d (diff) |
Clean up how we use opIds (#4118)
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; } } |