An OnTimerEvent should be implemented that allows you to schedule timers, both repeating and non-repeating.
Proposed solution: Add a new queue to ScriptManager with <microtime, Listener_ptr>, check this at the same time as timer event and dispatch any that have run out. Register function should be registerTimerEvent(1000, handler [, repeating]).
An OnTimerEvent should be implemented that allows you to schedule timers, both repeating and non-repeating.
Proposed solution: Add a new queue to ScriptManager with <microtime, Listener_ptr>, check this at the same time as timer event and dispatch any that have run out. Register function should be
registerTimerEvent(1000, handler [, repeating])
.