duration

Returns the duration of the trajectory.