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

x/deno/cli/js/performance.ts>Performance

A modern runtime for JavaScript and TypeScript.
Go to Latest
class Performance
import { Performance } from "https://deno.land/x/deno@v0.28.0/cli/js/performance.ts";

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!`);