4 ms·even shorter, change the loop to: for(i=4000;i--;) .by n-gauge 11y agoeven shorter, change the loop to: for(i=4000;i--;) .