title: SetTimeout or SetInterval Delay check
body: <p>My original question was about a block of code similar to this:</p>
  
  <pre><code>delayTime = 1000;
  reducedDelay = 0;
  
  setInterval(
  function(){
  
  //Code which calculates reduced delay
  
      reducedDelay = /* -- Any integer -- */;
  
      delayTime = 1000 - reducedDelay;
  
  },delayTime)
  </code></pre>
  
  <p><code>delayTime</code> is a global scope variable, so to my understanding, <code>delayTime</code> would be updated by the expression <code>delayTime = 1000 - reducedDelay;</code> and so the <code>setInterval</code> would call the function again with the updated <code>delayTime</code> delay... right?</p>
  
  <p>And this is just one use, but I was not able to find a way to actually check the delay of a <code>setInterval()</code> or <code>setTimeout()</code>. How could one check the <code>delayTime</code> (the second argument)?</p>
  
  <p>A better way to phrase it: How could one check the <code>setTimeout()</code> or <code>setInterval('param 1', 'param 2')</code> &lt;-- 'param 2' being the delay, how would one check if the <code>setInterval</code> is actually performing correctly? (I.e. delaying the next call of 'param 1' by the correct time.)</p>