Calculate times between startTime and endTime to populate timestamp markers.