Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno/cli/js/lib.deno_runtime.d.ts>__performanceUtil.Performance

A modern runtime for JavaScript and TypeScript.
Go to Latest
class __performanceUtil.Performance
import { __performanceUtil } from "https://deno.land/x/deno@v0.30.0/cli/js/lib.deno_runtime.d.ts";
const { Performance } = __performanceUtil;

Methods

now(): number

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

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

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