Delay

Delay the next execution cycle for macro, hotkeys or callbacks

Prototypes
delay(duration)
Parameters
    • duration: delay time in milliseconds.
Usage
macro(500, "AdvertiseMsg", function()
	yell("Advertising message")
	delay(math.random(2000, 2500)) -- delay execution for the next macro cycle
  end)