How does the timer work?

Serious question. In side the event loop you cannot do anything like "set time out" or anything that would prevent the loop from stopping, so how does the timer work? 


With that in mind if I wanted a script to say:


Wait x seconds then fire off common event, WITH OUT showing a timer whats the best way to approach that? if I knew how the timer worked, I could figure it out my self.
You could do a parallel process with wait(x) where x is the number of seconds / 60, then fire off the event. Just be sure to turn off the parallel process when you are done.


As for your question on the timer, not sure. Maybe someone who coded the engine can say more?

Original thread: https://forums.rpgmakerweb.com/threads/how-does-the-timer-work.61458/