• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] Best practice with timers
#1
Hello guys!? I would like to ask a question about the use of timers.? Suppose I have several systems that do checks from time to time, the best way would be to create a single timer that does all the checks or create multiple timers to check each thing?? Which way would be the most optimized and least burdensome on the server?

Code 1:
PHP Code:
SetTimer("ExecuteAll", 1000, false); public ExecuteAll() { // Verification 1 // Verification 2 // Verification 3 ... }

Code 2:

PHP Code:
SetTimer("Execute1", 1000, false); SetTimer("Execute2", 1000, false); SetTimer("Execute3", 1000, false); public Execute1() { // Verification 1 } public Execute2() { // Verification 2 } public Execute3() { // Verification 3 }
  Reply


Messages In This Thread
Best practice with timers - by RhaegarX - 2021-01-21, 02:16 AM
RE: Best practice with timers - by Pinch - 2021-01-21, 09:57 AM
RE: Best practice with timers - by Freaksken - 2021-01-21, 05:49 PM
RE: Best practice with timers - by Markski - 2021-01-22, 08:57 PM