Here is a sample code from the jQuery site itself
var times = chunks.length;
$(document).everyTime(1000, function(i) {
processChunk(i);
}, times);
Here the processChunk function will be called every 1000 (1 sec) no of times as metioned in times variable. If times is 0 (zero) then the processChunk function will be called every 1000 indefinitly.
Thanks,
-RG