def METHOD_NAME(self, record):
    msg = record.getMessage()
    if "Total program execution duration:" in msg:
        self.runs += 1
        self.tot_time_ns += int(msg.split(' ')[-1])
    return True