Dear barry,
in the first case i set up a counter , ie; i incremented it frm 0 to 1000000 and outside the loop i am reseting the variable to 0 so that it will do the same when it enters the loop next time. That is what I meant while writing the code. Incrementing a counter as well as decrementing the counter will produce the same effect right??also what is the difference, between manipulating a variable or a signal inside the loop, if my aim is just to produce a delay I am not using the value assigned to it anywhere else.And also even if null does nothing it wil help in elapsing the time, right.. pls correct me, if i am wrong.