Sign in
chromium
/
external
/
w3c
/
web-platform-tests
/
refs/tags/epochs/six_hourly/2023-08-12_01H
/
.
/
html
/
dom
/
render-blocking
/
support
/
utils.js
blob: 9a890ab685c675ee5baca618ce5d85b367761760 [
file
] [
log
] [
blame
]
function
jank
(
ms
)
{
let start
=
performance
.
now
();
while
(
performance
.
now
()
<
start
+
ms
);
}
function
jankMany
(
ms
,
times
)
{
for
(
let i
=
0
;
i
<
times
;
i
++)
{
jank
(
ms
);
}
}