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