automatic elapsed time calculation based on prev event

automatic elapsed time calculation based on prev event