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

x/xdg/vendor/types/deno.d.ts>Performance#now

Determine XDG Base Directory paths (OS/platform portable)
Go to Latest
method Performance.prototype.now
import { Performance } from "https://deno.land/x/xdg@v10.3.0/vendor/types/deno.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