how to log the time