Answer the question
In order to leave comments, you need to log in
How well does setTimeout and setInterval work?
How well does setTimeout and setInterval work? Is it possible to guarantee that when such a script is run, it will run exactly every hour second per second? And if we say in the middle of the delay the server lays down for 20 minutes, but by the end of the interval it decomposes whether the script will be executed exactly at the appointed time or the delay will increase by ~ 20 minutes?
setInterval(function () {
}, 3600000);
Answer the question
In order to leave comments, you need to log in
The callback will be called as close as possible to the time specified.
https://nodejs.org/docs/v0.6.1/api/timers.html
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question