import { Performance } from "https://deno.land/x/xdg@v10.5.1/vendor/types/deno.d.ts";
Methods
Removes the stored timestamp with the associated name.
Removes stored timestamp with the associated name.
Stores a timestamp with the associated name (a "mark").
Stores the DOMHighResTimeStamp
duration between two marks along with the
associated name (a "measure").
Stores the DOMHighResTimeStamp
duration between two marks along with the
associated name (a "measure").
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!`);
import { type Performance } from "https://deno.land/x/xdg@v10.5.1/vendor/types/deno.d.ts";
Deno supports user timing Level 3 (see: https://w3c.github.io/user-timing)
which is not widely supported yet in other runtimes. These types are here
so that these features are still available when using the Deno namespace
in conjunction with other type libs, like dom
.
Methods
Stores a timestamp with the associated name (a "mark").
Stores the DOMHighResTimeStamp
duration between two marks along with the
associated name (a "measure").