Change an interval
<p>Is it possible to do <code>setInterval</code>, then after 180 times it runs, slow down the interval time?</p>

<p>Basically after about 15 minutes I would like the timer to only run once every minute, then after about an hour set the interval to run once every hour. I am hoping that there is a way I can do this without having to embed a <code>setInterval</code> within a <code>setInterval</code> within a <code>setInterval</code>.</p>

<pre><code>var c = 0;
var interval = 5000;
var timer;
timer = setInterval(function(){
    checkActivity();
    c++;
    if(c &gt; 180){
        interval = 60000;
    }
}, interval);
</code></pre>
