@property<EOL><INDENT>def log_message(self):<DEDENT>
time_delta = deepcopy(self.time_delta)<EOL>total_work_time = self.worker_count * time_delta<EOL>time_worked = sum(self.exec_times)<EOL>pct_busy = time_worked / total_work_time * <NUM_LIT><EOL>min_task_time = min(self.exec_times)<EOL>avg_task_time = sum(self.exec_times) / len(self.exec_times)<EOL>max_task_time = max(self.exec_times)<EOL>min_queue_time = min(self.queue_times)<EOL>avg_queue_time = sum(self.queue_times) / len(self.queue_times)<EOL>max_queue_time = max(self.queue_times)<EOL>time_delta = self.time_delta<EOL>total_tasks = len(self.exec_times)<EOL>avg_task_rate = total_tasks / time_delta<EOL>self.reset()<EOL>task_msg = """<STR_LIT>""".format(<EOL>total_tasks, round(avg_task_rate, <NUM_LIT:1>), self.worker_count, round(pct_busy, <NUM_LIT:1>)<EOL>)<EOL>task_mam = """<STR_LIT>""".format(<EOL>round(min_task_time, <NUM_LIT:3>), round(avg_task_time, <NUM_LIT:3>), round(max_task_time, <NUM_LIT:3>)<EOL>)<EOL>queue_mam = """<STR_LIT>""".format(<EOL>round(min_queue_time, <NUM_LIT:6>), round(avg_queue_time, <NUM_LIT:6>), round(max_queue_time, <NUM_LIT:6>)<EOL>)<EOL>return """<STR_LIT>""".format(task_msg, task_mam, queue_mam)<EOL>
Build a log message and reset the stats