title: Pause and resume setInterval
body: <pre><code>window.setInterval(function(){
    //do stuff
  }, milisec);
  </code></pre>
  
  <p>Is there a way to stop this interval at will, and to resume it from where it lasted? Say, code runs every 5 sec. I stop it in the middle of the 2nd second, when resumed, I want it to run the remaining 3 seconds and continue to run afterwards every 5 sec. again.</p>