time logging for every iteration added
date and time added for logging