Show More
@@ -322,7 +322,8 b' DEFAULTLIMITS = (' | |||||
322 | (10.0, 3), |
|
322 | (10.0, 3), | |
323 | ) |
|
323 | ) | |
324 |
|
324 | |||
325 |
def _timer(fm, func, setup=None, title=None, displayall=False |
|
325 | def _timer(fm, func, setup=None, title=None, displayall=False, | |
|
326 | limits=DEFAULTLIMITS): | |||
326 | gc.collect() |
|
327 | gc.collect() | |
327 | results = [] |
|
328 | results = [] | |
328 | begin = util.timer() |
|
329 | begin = util.timer() | |
@@ -338,7 +339,7 b' def _timer(fm, func, setup=None, title=N' | |||||
338 | cstop = util.timer() |
|
339 | cstop = util.timer() | |
339 | # Look for a stop condition. |
|
340 | # Look for a stop condition. | |
340 | elapsed = cstop - begin |
|
341 | elapsed = cstop - begin | |
341 |
for t, mincount in |
|
342 | for t, mincount in limits: | |
342 | if elapsed >= t and count >= mincount: |
|
343 | if elapsed >= t and count >= mincount: | |
343 | keepgoing = False |
|
344 | keepgoing = False | |
344 | break |
|
345 | break |
General Comments 0
You need to be logged in to leave comments.
Login now