Did the following code:
The loops are identical, yet I get a reading of about 416 for the first, and about 384 for the second. Shouldn't identical code take the same time? Yet every time I run it, the first is always slower than the second. What's going on? (P.S. I am running it with debug OFF).
count1 = MilliSecs() For x=1 To 100000000 Next count2 = MilliSecs() count3 = MilliSecs() For x =1 To 100000000 Next count4 = MilliSecs() Print count2 - count1 Print count4 - count3 MouseWait End
The loops are identical, yet I get a reading of about 416 for the first, and about 384 for the second. Shouldn't identical code take the same time? Yet every time I run it, the first is always slower than the second. What's going on? (P.S. I am running it with debug OFF).