logging timediff for every console.log