mirror of
https://github.com/denoland/deno.git
synced 2024-12-29 10:39:10 -05:00
e435c2be15
Co-authored-by: Ryan Dahl <ry@tinyclouds.org>
9 lines
255 B
TypeScript
9 lines
255 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;
|
|
}
|
|
}
|