function setTimer (shared-side)
Available since version: 0.0.1
This function will create the timer which will be excecuted X times between the time interval.
int setTimer(function func, int interval, int excecuteTimes, ... args)
functionfunc: the function reference which will be executed between the time interval.
intinterval: the interval time in milliseconds. The smallest acceptable interval is
intexcecuteTimes: the number which corresponds how many times the function will be called. If you pass
0, the timer will run infinitely.
...args: the additional optional parameters, that will be passed to each function call.
Returns the timer id.