Java Thread Pause pause(int millis)

Here you can find the source of pause(int millis)

Description

sleeps for millis milliseconds, approximately.

License

Open Source License

Declaration

static void pause(int millis) 

Method Source Code

//package com.java2s;
// it under the terms of the GNU General Public License as published by

public class Main {
    /**//from  w w w .ja  v a 2  s .  c  o  m
     * sleeps for millis milliseconds, approximately.
     */
    static void pause(int millis) {
        try {
            Thread.sleep(millis); // sleep a bit before trying again.
        } catch (InterruptedException ie) {
        }
    }
}

Related

  1. pause(double seconds)
  2. pause(double seconds)
  3. pause(double timeInSec)
  4. pause(final long time)
  5. pause(int i, String unit)
  6. pause(int millis)
  7. pause(int milliseconds)
  8. pause(int ms)
  9. pause(int secs)