def report_exec_time(function, time): return "Total time spent executing '{}' function: {}".format(function, best_duration(time))
def report_line_exec(line, count, total): return "Line {} executed {} times, total time spent executing: {}".format(line, count, best_duration(total))
def live_line(line, count, total): return "Line {} executed {} times, total time spent on line: {}, average time: {}".format(line, count, best_duration(total), best_duration(total / count))