title: Fast forward timer
body: <p>I'm having trouble with fast forwarding a timer. It is very basic at this stadium. I have a interval that add numbers. Like this:</p>
  
  <pre><code>setInterval(function () {
      //+1 second
      //Format output to 00:00
      //Handle minute update
  }, 1000);
  </code></pre>
  
  <p>This works perfect. The timer is going at normal speed. What I want to do is fast forwarding this timer. I want a timer minute to take 1 real second. I have tried:</p>
  
  <pre><code>setInterval(function () {
      //+1 second
      //Format output to 00:00
      //Handle minute update
  }, 15);
  </code></pre>
  
  <p>That works sometimes and sometimes not. Sometimes it stops att 01:02 instead of 01:00. It may be my lack of math knowledge but I don't know. How would you do it? I am going to stop and start the timer every "timer minute" so it's important that the interval is correct.</p>
  
  <p><strong>EDIT</strong>
  Here is a fiddle of how I want it to work: <a href="http://jsfiddle.net/tbleckert/pF4gs/" rel="nofollow">http://jsfiddle.net/tbleckert/pF4gs/</a></p>
  
  <p><strong>EDIT 2</strong>
  Maybe I should just adjust the time when I stop the timer?</p>
  
  <p><strong>EDIT 3</strong>
  It seems like 15 ms works most of the times. But something makes ut unreliable, I think the best way is to just adjust the time.</p>