timer

namespace timer

the default global Timer instance

// set a timer to call "myFunction" after 1000ms
timer.setTimeout(myFunction, 1000);
// set a timer to call "myFunction" after 1000ms (respecting the pause state) and passing param1 and param2
timer.setTimeout(myFunction, 1000, true, param1, param2);
// set a timer to call "myFunction" every 1000ms
timer.setInterval(myFunction, 1000);
// set a timer to call "myFunction" every 1000ms (respecting the pause state) and passing param1 and param2
timer.setInterval(myFunction, 1000, true, param1, param2);
See: Timer
Powered by webdoc!