adds a timestamp to events