title: Is there any alternative to Thread.sleep()?
body: <p>I need to perform some waiting between one call and another.
  Problem is that this waiting will be made in a library so it is not a good practice to put a Thread.sleep() there. No swing involved, this library is a jna interface.</p>
  
  <p>So..is there any alternative suited for my case?</p>