Performance and timers
Ce contenu n’est pas encore disponible dans votre langue.
We choose to not freeze the time mechanism of the Worker runtime so you can have access to the whole set of Performance API and Timers functions
The rest of the timers utility are available:
setTimeout
The setTimeout()
method sets a timer which executes a function or specified
piece of code once the timer expires.
setInterval
The setInterval()
method, repeatedly calls a function or executes a code
snippet, with a fixed time delay between each call.
clearTimeout
The clearTimeout()
method cancels a timeout previously established by calling
setTimeout()
.
clearInterval
The clearInterval()
method cancels a timeout previously established by calling
setInterval()
.