A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developer.cdn.mozilla.net/en-US/docs/Web/API/PerformanceEventTiming/processingEnd below:

PerformanceEventTiming: processingEnd property - Web APIs

PerformanceEventTiming: processingEnd property

Limited availability

The read-only processingEnd property returns the time the last event handler finished executing.

It's equal to PerformanceEventTiming.processingStart when there are no such event handlers.

Value

A DOMHighResTimeStamp timestamp.

Examples Using the processingEnd property

The processingEnd property can be used when observing event-timing entries (PerformanceEventTiming). For example, to calculate input delay or event processing times.

const observer = new PerformanceObserver((list) => {
  list.getEntries().forEach((entry) => {
    // Full duration
    const duration = entry.duration;
    // Input delay (before processing event)
    const delay = entry.processingStart - entry.startTime;
    // Synchronous event processing time
    // (between start and end dispatch)
    const time = entry.processingEnd - entry.processingStart;
  });
});
// Register the observer for events
observer.observe({ type: "event", buffered: true });
Specifications Browser compatibility See also

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4