I want to run a function every 10th minute in an hour. So for 10AM, the events will fire exactly at:
10:00
10:10
10:20
10:30
10:40
10:50
I'm aware of setTimeout
and setInterval
, however:
1. They're never exact. They're sometimes early, or delayed. They also get effected by being out of focus.
2. I'm not sure how to make a system (as I mentioned above) that will work with timeouts or intervals.
3. Looking for the right way to do this.
I'm not looking for a timer, but a scheduler.
Any ideas are appreciated.