consider this piece of code:
when start is executed, Bid is 1.0000. let' say doProcess() took 2 seconds to complete before printing Bid, and in the two-second window, the Bid price changed to
1.0001
1.0002
1.0003
(three ticks within while doProcess() was executing). My question is, what would be printed? doProcess() executed 4 times and all four (1.0000 to 1.0003) printed, or doProcess() executed only once and only 1.0003 printed? thanks.
Code:
int start(){
doProcess();
Alert(Bid);
return(0);
}
1.0001
1.0002
1.0003
(three ticks within while doProcess() was executing). My question is, what would be printed? doProcess() executed 4 times and all four (1.0000 to 1.0003) printed, or doProcess() executed only once and only 1.0003 printed? thanks.