def METHOD_NAME(trace):
    start_time = float('inf')
    end_time = float('-inf')
    for seg in trace:
        if seg['start_time'] < start_time:
            start_time = seg['start_time']
        if seg['end_time'] > end_time:
            end_time = seg['end_time']
    return start_time, end_time, end_time - start_time