so a few more words about timers and such in Scripter...
So what CAN you do...
you can use event.sendAfterMilliseconds or event.sendAfterBeats for one thing. For the actual sending of events, that works good for scheduling them in the future.
One downside is that beatPosition is not an exact amount of real time. 1.5 beats represents a completely different mount of time at one tempo compared to 1.5 beats at a different tempo. So how can you know when so many ms have gone by? You'd literally have to calculate it each process-block, look at the tempo for that process-block and use the beatPosition delta and guess at how many ms have gone by. But this is a little imprecise too.
well anyway, It depends on what you're wanting to do, but generally I would recommend you work with beatPosition if you are planning to output midi using correct timing. But there you have some options to play with.
5,1 MacPro 3.46ghz x 12 128gb ram, OSX 10.15 on OpenCore, Logic Pro 10.5, Mainstage3, Cubase10.5, StudioOne4, Reaper, DP10, VEP7, VSL, too many plugins to list