title: Wait for a given time in Java
body: <p>I just wonder if there is a way to wait(sec). I measure memory in java and then I call garbage collection and after some time I want to measure the memory again. I thought about quartz but is in it too complicated, I heard thread.sleep is not accurate.. </p>
  
  <p>Thanx</p>