How to get the time an output was printed?

Put the date variable inside the event