execution speed EZSBC
Posted: Sun Apr 17, 2016 5:07 am
In my program I have 15 blocks of code as follows:
if LED(X,1) & 1 = 1 then
outd R1, 1
else
outd R1, 0
endif
At the start of the code I put settick (0) and before the next X I put z = gettick. I got back 54 or 55 on subsequent runs. This would indicate that it took 5500 micro seconds or about 366 micro seconds per if. This seems exceeding slow, I was expecting less than 50 micro seconds per if.
if LED(X,1) & 1 = 1 then
outd R1, 1
else
outd R1, 0
endif
At the start of the code I put settick (0) and before the next X I put z = gettick. I got back 54 or 55 on subsequent runs. This would indicate that it took 5500 micro seconds or about 366 micro seconds per if. This seems exceeding slow, I was expecting less than 50 micro seconds per if.