Skip to main content
method Performance.prototype.now
allow-hrtime

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