You can use setTimeoutto start the function after passing X milliseconds.
var timeout = setTimeout(function(){
$('post').each(function(){
});
}, 3000);
Or, setIntervalto run a function every X milliseconds.
var interval = setInterval(function(){
$('post').each(function(){
});
}, 3000);
setTimeout setInterval , -/ clearTimeout clearInterval.