def time_of_saccades(saccades, d_time):
    """
    A Function to get the start and end time of the individual saccades

    :param saccades:    a list with values which indicate if the move from the previos is a saccade.
    :param d_time:      the delta time in seconds between each step
    :return:            return a list of tuples with (start_time_inclusive, end_time_exclusive)
    """
    saccade_times = []
    is_currently = False
    current_time = 0.0
    current_start_time = None
    for value in saccades:
        if value == 1 and is_currently == False:
            current_start_time = current_time
            is_currently = True
        if value == 0 and is_currently == True:
            is_currently = False
            saccade_times.append((current_start_time, current_time))
        current_time += d_time
    if is_currently == True:
        saccade_times.append((current_start_time, current_time))
    return saccade_times