Java Timer
- From: "sconeek" <sconeek@xxxxxxxxx>
- Date: 29 Nov 2005 19:45:39 -0800
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.
.
- Follow-Ups:
- Re: Java Timer
- From: Roedy Green
- Re: Java Timer
- From: hiwa
- Re: Java Timer
- From: sconeek
- Re: Java Timer
- Prev by Date: Re: A good text editor for JAVA?
- Next by Date: Rethrowing an exception via JNI ?
- Previous by thread: URLConnection problem
- Next by thread: Re: Java Timer
- Index(es):
Relevant Pages
|