wait for seconds
Hi
I am trying to write a do while loop that call a method and if the method returns false ...waits for 10 seconds and calls again....and after repeting this for 180 seconds exists out....any help on how to code this in a better way
bool Passed = Check(arrayInt);
do
{
// wait for 5 secs
bool Passed = Check(arrayInt);
} while (Passed == false);
Thanks
|