title: Repeat loop once a second
body: <p>I have a while loop that needs to repeat once a second, and I have no idea how to do that.  I have never even used Java's time module or whatever it is called. </p>
  
  <p>The basic loop is shown below.  Can anyone give me a tip on how to do this?</p>
  
  <pre><code>while (!isOver()) {
     // do some work
  }
  </code></pre>