summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/longtask-timing/resources/raflongtask.js
blob: ec39cb896eef2907d7a18db3d925d843fe96ecfb (plain)
1
2
3
4
5
window.requestAnimationFrame(function() {
  /* Generate a slow task. */
  const begin = window.performance.now();
  while (window.performance.now() < begin + 60);
});