/**
 * Waits one second or a given number of milliseconds
 * http://www.java-tips.org/java-se-tips/java.lang/pause-the-execution.html
 * updated by Fred Kral September 2012
 */
public class Wait {
  public static void oneSec() {
     try {
       Thread.currentThread().sleep(1000);
       }
     catch (InterruptedException e) {
       e.printStackTrace();
       }
     }  
  public static void milliSec(long s) {
     try {
       Thread.currentThread().sleep(s);
       }
     catch (InterruptedException e) {
       e.printStackTrace();
       }
     }
}
