This is documentation for the next version of K6. For the latest stable release, go to the latest version.
timers
Caution
The experimental module
k6/experimental/timers
has graduated, and its functionality is now available globally and through thek6/timers
module. Thek6/experimental/timers
is deprecated and will be removed.To migrate your scripts, remove the
k6/experimental/timers
imports.
This modules implements the commonly found in browsers:
Function | Description |
---|---|
setTimeout | sets a function to be run after a given timeout |
clearTimeout | clears a previously set timeout with setTimeout |
setInterval | sets a function to be run on a given interval |
clearInterval | clears a previously set interval with setInterval |