interface Performance
implements EventTarget
import { type Performance } from "https://deno.land/x/deno@v1.36.0/cli/tsc/dts/lib.deno.shared_globals.d.ts";
Methods
getEntries(): PerformanceEntryList
getEntriesByName(name: string, type?: string): PerformanceEntryList
getEntriesByType(type: string): PerformanceEntryList
mark(markName: string, options?: PerformanceMarkOptions): PerformanceMark
Stores a timestamp with the associated name (a "mark").
measure(measureName: string, options?: PerformanceMeasureOptions): PerformanceMeasure
Stores the DOMHighResTimeStamp
duration between two marks along with the
associated name (a "measure").
measure(): PerformanceMeasure
measureName: string,
startMark?: string,
endMark?: string,
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
to return a precise value.
const t = performance.now();
console.log(`${t} ms since start!`);
import { Performance } from "https://deno.land/x/deno@v1.36.0/cli/tsc/dts/lib.deno.shared_globals.d.ts";
type
{ readonly prototype: Performance; new (): never; }