def csv_time_writer(output_dict, input_dict, file):
    """
    This function write csv_file for time simulation
    :param output_dict: time simulation output dictionary
    :param input_dict: input dictionary
    :param file: csv_time file object
    :return:  None
    """
    input_keys = list(input_dict.keys())
    input_keys.sort()
    output_keys = list(output_dict.keys())
    output_keys.sort()
    for inp in input_keys:
        file.write(str(inp) + ',')
        file.write(','.join(list(map(str, input_dict[inp][:-1]))))
        file.write('\n')
    for out in output_keys:
        file.write(out)
        file.write(',')
        file.write(','.join(list(map(str, output_dict[out]))))
        file.write('\n')
    file.write('\n')
