I was going to put the calculation outside out the loop in my program as it scans a whole picture and could be called millions of times but now I'm not so sure.
Code: Select all
DisableDebugger
OpenConsole()
testy=100
For m=1 To 10
t=ElapsedMilliseconds()
For n=1 To 50000000
a=testy-1
b=testy-1
c=testy-1
d=testy-1
Next
t=ElapsedMilliseconds()-t
PrintN(Str(t))
Next
PrintN("")
For m=1 To 10
t=ElapsedMilliseconds()
For n=1 To 50000000
a=testy
b=testy
c=testy
d=testy
Next
t=ElapsedMilliseconds()-t
PrintN(Str(t))
Next
PrintN("")
Input()