def METHOD_NAME(self, average=False):
    dic = {}
    dic['preprocess_time_s'] = round(
        self.preprocess_time_s.value() / max(1, self.img_num),
        4) if average else self.preprocess_time_s.value()
    dic['postprocess_time_s'] = round(
        self.postprocess_time_s.value() / max(1, self.img_num),
        4) if average else self.postprocess_time_s.value()
    dic['inference_time_s'] = round(
        self.inference_time_s.value() / max(1, self.img_num),
        4) if average else self.inference_time_s.value()
    dic['img_num'] = self.img_num
    total_time = self.preprocess_time_s.value(
    ) + self.inference_time_s.value() + self.postprocess_time_s.value()
    dic['total_time_s'] = round(total_time, 4)
    return dic