print "Initiating"
wait 3000
print "Running test 1"
time1=hitimer()
for a=1 to 500000
if a<>555
endif
next a
print "Time1: "+str$(hiTimer()-time1)
print
print "Running test 2"
time2=hitimer()
for a=1 to 500000
if not a=555
endif
next a
print "Time2: "+str$(hiTimer()-time2)
wait key
I was intruigued by this so I thought I'd investigate.
I knocked this up in a hurry, and run it a few times; but it appears to show that using
<> is around 50% faster than using
Not
>edit<
Huge error in code making silly results, my kids distracting me with endless calls for passwords, punctures fixing, drinks making etc. sorry.
Fixed now, results not as severe as first thought, but it is still faster to use <> over not