const syncDelay = ms => { const start = performance.now();
let elapsedTime; do {
elapsedTime = performance.now() - start;
} while (elapsedTime < ms);
};
const markTime = (docName, lifecycleEventName) => { // Calculating these values before the below `mark` invocation ensures that delays in // reaching across to the other window object doesn't interfere with the correctness // of the test. const dateNow = Date.now(); const performanceNow = performance.now();
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.