title: Why setInterval runs slower than expected?
body: <p>I expect in following code <code>setInterval</code> runs 100 times before <code>setTimeout</code>.</p>
  
  <pre><code>var current = 0;
  
  var timer = setInterval(function(){
      process.stdout.write(current.toString() + '\n');
  
      if(current === 1000) {
          clearInterval(timer);
          process.stdout.write('Done');   
      }
  
      current += 10;
  }, 10);
  
  setTimeout(function(){
      process.stdout.write('This is 1000.\n');
  }, 1000);
  </code></pre>
  
  <p>But its the result:</p>
  
  <pre><code>860
  870
  880
  This is 1000.
  890
  900
  910
  920
  930
  940
  950
  960
  970
  980
  990
  1000
  Done
  </code></pre>
  
  <p>What I did not understand about <code>setInterval</code>? I think last <code>setInterval</code> and <code>setTimeout</code> should run together at the end.</p>