Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/deno/cli/dts/lib.deno.shared_globals.d.ts>Performance#now

A modern runtime for JavaScript and TypeScript.
Go to Latest
method Performance.prototype.now
allow-hrtime
import { Performance } from "https://deno.land/x/deno@v1.28.1/cli/dts/lib.deno.shared_globals.d.ts";

Returns a current time from Deno's start in milliseconds.

Use the permission flag --allow-hrtime return a precise value.

const t = performance.now();
console.log(`${t} ms since start!`);

Returns

number