I'm making a plugin that run a function every 3600 sec (1 hours).
It doesn't need to be precise.
I'm thinking about 2 solutions:
Are timers expensive in terms of performance (CPU)?
It doesn't need to be precise.
I'm thinking about 2 solutions:
- Creating a timer.
- Calculate the difference of time at each server save and run the function if the difference is more than 1 hour.
Are timers expensive in terms of performance (CPU)?