Performance
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
.
interface Performance {}
class Performance extends EventTarget { }
constructor();
readonly timeOrigin: number;
clearMarks(markName?: string): void;
clearMeasures(measureName?: string): void;
getEntries(): PerformanceEntryList;
now(): number;
toJSON(): any;
§Properties
§Methods
§
getEntries(): PerformanceEntryList
[src]§
getEntriesByType(type: string): PerformanceEntryList
[src]§
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").