kopia lustrzana https://github.com/micropython/micropython-lib
timeit: Don't call gc.disable(), in uPy that means also "alloc disable".
rodzic
c41717f2c1
commit
68b91ee6aa
|
@ -185,7 +185,7 @@ class Timer:
|
||||||
else:
|
else:
|
||||||
it = [None] * number
|
it = [None] * number
|
||||||
gcold = gc.isenabled()
|
gcold = gc.isenabled()
|
||||||
gc.disable()
|
# gc.disable()
|
||||||
try:
|
try:
|
||||||
timing = self.inner(it, self.timer)
|
timing = self.inner(it, self.timer)
|
||||||
finally:
|
finally:
|
||||||
|
|
Ładowanie…
Reference in New Issue