1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-27 01:29:14 -05:00
denoland-deno/cli/js/web/performance.ts
2020-07-06 21:45:39 -04:00

10 lines
256 B
TypeScript

// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { now as opNow } from "../ops/timers.ts";
export class Performance {
now(): number {
const res = opNow();
return res.seconds * 1e3 + res.subsecNanos / 1e6;
}
}