def __get_timing_window(self, traces, stats, cycle):
    (custom_start, custom_end) = cycle.split('@')
    if custom_start:
        start = int(custom_start)
    elif stats:
        start = stats[0]['global_ctr']
    else:
        start = traces[0]['cycle']
    if custom_end:
        end = int(custom_end)
    elif stats:
        end = stats[(- 1)]['global_ctr']
    else:
        end = traces[(- 1)]['cycle']
    return (start, end)
def __get_timing_window(self, traces, stats, cycle):
    (custom_start, custom_end) = cycle.split('@')
    if custom_start:
        start = int(custom_start)
    elif stats:
        start = stats[0]['global_ctr']
    else:
        start = traces[0]['cycle']
    if custom_end:
        end = int(custom_end)
    elif stats:
        end = stats[(- 1)]['global_ctr']
    else:
        end = traces[(- 1)]['cycle']
    return (start, end)