kopia lustrzana https://github.com/micropython/micropython-lib
pystone_lowmem: Update for new signature of ticks_diff() (args swapped).
rodzic
4534075c37
commit
fb47cd8bc5
|
@ -96,7 +96,7 @@ def Proc0(loops=LOOPS):
|
||||||
starttime = ticks_ms()
|
starttime = ticks_ms()
|
||||||
for i in range(loops):
|
for i in range(loops):
|
||||||
pass
|
pass
|
||||||
nulltime = ticks_diff(starttime, ticks_ms())
|
nulltime = ticks_diff(ticks_ms(), starttime)
|
||||||
|
|
||||||
PtrGlbNext = Record()
|
PtrGlbNext = Record()
|
||||||
PtrGlb = Record()
|
PtrGlb = Record()
|
||||||
|
@ -134,7 +134,7 @@ def Proc0(loops=LOOPS):
|
||||||
IntLoc2 = 7 * (IntLoc3 - IntLoc2) - IntLoc1
|
IntLoc2 = 7 * (IntLoc3 - IntLoc2) - IntLoc1
|
||||||
IntLoc1 = Proc2(IntLoc1)
|
IntLoc1 = Proc2(IntLoc1)
|
||||||
|
|
||||||
benchtime = ticks_diff(starttime, ticks_ms()) - nulltime
|
benchtime = ticks_diff(ticks_ms(), starttime) - nulltime
|
||||||
if benchtime == 0:
|
if benchtime == 0:
|
||||||
loopsPerBenchtime = 0
|
loopsPerBenchtime = 0
|
||||||
else:
|
else:
|
||||||
|
|
Ładowanie…
Reference in New Issue