Show More
@@ -69,10 +69,11 b' class TimeitResult(object):' | |||||
69 |
|
69 | |||
70 | """ |
|
70 | """ | |
71 |
|
71 | |||
72 | def __init__(self, loops, repeat, best, all_runs, compile_time, precision): |
|
72 | def __init__(self, loops, repeat, best, worst, all_runs, compile_time, precision): | |
73 | self.loops = loops |
|
73 | self.loops = loops | |
74 | self.repeat = repeat |
|
74 | self.repeat = repeat | |
75 | self.best = best |
|
75 | self.best = best | |
|
76 | self.worst = worst | |||
76 | self.all_runs = all_runs |
|
77 | self.all_runs = all_runs | |
77 | self.compile_time = compile_time |
|
78 | self.compile_time = compile_time | |
78 | self._precision = precision |
|
79 | self._precision = precision | |
@@ -1058,7 +1059,7 b' python-profiler package from non-free.""")' | |||||
1058 | if tc > tc_min: |
|
1059 | if tc > tc_min: | |
1059 | print("Compiler time: %.2f s" % tc) |
|
1060 | print("Compiler time: %.2f s" % tc) | |
1060 | if return_result: |
|
1061 | if return_result: | |
1061 | return TimeitResult(number, repeat, best, all_runs, tc, precision) |
|
1062 | return TimeitResult(number, repeat, best, worst, all_runs, tc, precision) | |
1062 |
|
1063 | |||
1063 | @skip_doctest |
|
1064 | @skip_doctest | |
1064 | @needs_local_scope |
|
1065 | @needs_local_scope |
General Comments 0
You need to be logged in to leave comments.
Login now