getDuration returns the total duration of the trajectory [s] This is equivalent to duration = getEndTime() - getStartTime();