def getPMUtiming(lines):
    """
    Function to get the timing for the PMU recording.

    Parameters
    ----------
    lines : list of str
        list with PMU file lines
        To improve speed, don't pass the first line, which contains the raw data.

    Returns
    -------
    MPCUTime : list of two int
        MARS timestamp (in ms, since the previous midnight) for the start and finish
        of the signal logging, respectively
    MDHTime : list of two int
        Mdh timestamp (in ms, since the previous midnight) for the start and finish
        of the signal logging, respectively

    """

    MPCUTime = [0,0]
    MDHTime = [0,0]
    for l in lines:
        if 'MPCUTime' in l:
            ls = l.split()
            if 'LogStart' in l:
                MPCUTime[0]= int(ls[1])
            elif 'LogStop' in l:
                MPCUTime[1]= int(ls[1])
        if 'MDHTime' in l:
            ls = l.split()
            if 'LogStart' in l:
                MDHTime[0]= int(ls[1])
            elif 'LogStop' in l:
                MDHTime[1]= int(ls[1])

    return MPCUTime, MDHTime