setEventTimes function

Created a sorted vector of event times