Node.js module
timers
The 'node:timers' module provides timer functions like setTimeout, setInterval, setImmediate, and their clear counterparts. These functions schedule callbacks for future execution in the event loop.
The module also includes utility methods to measure and manage timers programmatically.
Fully supported in Bun
Module is implemented, but it's recommended to use global setTimeout, setInterval, setImmediate, etc. instead.