def _get_frame_time(time_steps):
    """ Compute average frame time.
    
    :param time_steps: 1D array with cumulative frame times.
    :type time_steps: numpy.ndarray
    :return: The average length of each frame in seconds.
    :rtype: float
    """
    if len(time_steps.shape) != 1:
        raise ValueError("ERROR: Time series must be a 1D array.")
    frame_time = time_steps[-1]/(len(time_steps) - 1)  # Need to ignore the first frame (0).
    return frame_time