mirror of
https://github.com/denoland/deno.git
synced 2024-12-27 01:29:14 -05:00
10 lines
256 B
TypeScript
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;
|
|
}
|
|
}
|