The Timer class represents a Windows APC Timer.
Hex.Timer() returns a new object of type Timer.
The timercallback is executed as an asynchronous procedure call, and therefore should be used only for short tasks or it could affect other timer operations.
The Timer is only active while the Timer object is valid. Once the lua garbage collector collects the timer will be removed.
You should always avoid the use of timers where you can.
function MyTimerProc(iTimerId) -- the timer period has elapsed end
Parameters:
mytimer = Hex.Timer() -- Interval of timer = 10 sec mytimer:Start(10000, 10000, "MyTimerProc") function MyTimerProc(iTimerId) -- the timer period has elapsed end