Added lazy version of time logging