Get time remaining of a setInterval
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/3144711/javascript-find-the-time-left-in-a-settimeout">Javascript: find the time left in a setTimeout()?</a>  </p>
</blockquote>



<p>For example if I have:</p>

<pre><code>&lt;script&gt;

    var timer = setInterval(function(){ coolfunction() }, 10000);

&lt;/script&gt;
</code></pre>

<p>Is there a way to check the time remaining to find out how many milliseconds are left until coolfunction() is run?</p>
