Java Timer



Hi all,

I am writing a Java app, where I need to wait for 10 seconds after a
condition holds good and then check if the same condition still holds
true and if yes then do something.

Essentially I have this,
if (mDt.getTime() == lsEtTSt.getTime()) {
// wait for 10 seconds

// check for the condition again

// Do something
}

I dont want to use Thread.sleep. If somebody could suggest a loop or
something which goes on for 10seconds that would be really great.

thanks.

.



Relevant Pages

  • Re: question
    ... > Can anyone plz. ... > with the help of "for loop" ... writing the program yourself. ... Prev by Date: ...
    (comp.lang.c)
  • Put a variable into text ?
    ... and then do a loop 60 time instead of writing 60 lines. ... My Photoalbum ... Prev by Date: ...
    (microsoft.public.excel)
  • Put variable into text ?
    ... and then do a loop 60 time instead of writing 60 lines. ... My Photoalbum ... Prev by Date: ...
    (microsoft.public.excel.programming)
  • Re: Moving a text file
    ... suggest writing a loop to find the first unused unit number (starting ... Prev by Date: ...
    (comp.lang.fortran)
  • Re: Problem with a script
    ... a loop there becomes impractical. ... You still have them as uniquely named array indexes... ... writing the code twice will only ... reading your entire code and parsing it in their head, ...
    (comp.lang.php)