def amgxwrapper_poisson_read_runtimes(*filepaths):
    """Read the runtimes to solve the system for multiple runs.

    Parameters
    ----------
    filepaths : tuple of strings or pathlib.Path objects
        Path of the files to read.

    Returns
    -------
    runtimes : list of floats
        The runtimes.

    """
    runtimes = []
    for filepath in filepaths:
        with open(filepath, 'r') as infile:
            prev_line = ''
            for line in infile:
                if 'Solve Time:' in line:
                    if not prev_line.startswith('Warm-up'):
                        runtime = float(line.split(' ')[-1])
                        runtimes.append(runtime)
                prev_line = line
    return runtimes