Menu
Open source
k6/timers
Implement timers to work with k6’s event loop. They mimic the functionality found in browsers and other JavaScript runtimes.
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 . |
Was this page helpful?
Related resources from Grafana Labs
Additional helpful documentation, links, and articles:
Video
Performance testing and observability in Grafana Cloud
In this webinar, learn how Grafana Cloud k6 offers you the best developer experience for performance testing.
User-centered observability: load testing, real user monitoring, and synthetics
Learn how to use load testing, synthetic monitoring, and real user monitoring (RUM) to understand end users' experience of your apps. Watch on demand.