Skip to content

Commit fb47cd8

Browse files
committed
pystone_lowmem: Update for new signature of ticks_diff() (args swapped).
1 parent 4534075 commit fb47cd8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pystone_lowmem/pystone_lowmem.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def Proc0(loops=LOOPS):
9696
starttime = ticks_ms()
9797
for i in range(loops):
9898
pass
99-
nulltime = ticks_diff(starttime, ticks_ms())
99+
nulltime = ticks_diff(ticks_ms(), starttime)
100100

101101
PtrGlbNext = Record()
102102
PtrGlb = Record()
@@ -134,7 +134,7 @@ def Proc0(loops=LOOPS):
134134
IntLoc2 = 7 * (IntLoc3 - IntLoc2) - IntLoc1
135135
IntLoc1 = Proc2(IntLoc1)
136136

137-
benchtime = ticks_diff(starttime, ticks_ms()) - nulltime
137+
benchtime = ticks_diff(ticks_ms(), starttime) - nulltime
138138
if benchtime == 0:
139139
loopsPerBenchtime = 0
140140
else:

0 commit comments

Comments
 (0)