31.07.2024, 05:36
Hi everyone and especially @admin
Could you please explain how to implement robust multifunctional timer script to handle all "timer logic"?
In examples there are many different options, what makes it so confusing.
For example, there is scheduled script example, copas, os.microtime() with localbustep(), localbus:loop(), timerfd, resident script with deltatime and maybe more. By the way localbustep() and localbus:loop() receives unclear number parameters, what are they?
Almost every of examples do the same things: timers.
So, is it possible to make simple (or not) and efficient timer to rule them all?
Or point to already existing one if there is one, please.
Could you please explain how to implement robust multifunctional timer script to handle all "timer logic"?
In examples there are many different options, what makes it so confusing.
For example, there is scheduled script example, copas, os.microtime() with localbustep(), localbus:loop(), timerfd, resident script with deltatime and maybe more. By the way localbustep() and localbus:loop() receives unclear number parameters, what are they?
Almost every of examples do the same things: timers.
So, is it possible to make simple (or not) and efficient timer to rule them all?
Or point to already existing one if there is one, please.