Java Thread Pause pause(long nbMilliseconds)

Here you can find the source of pause(long nbMilliseconds)

Description

pause

License

Open Source License

Declaration

public static void pause(long nbMilliseconds) 

Method Source Code

//package com.java2s;

public class Main {
    public static void pause(long nbMilliseconds) {
        try {//ww  w  .  jav a 2  s  .  c om
            System.out.println("Pause for " + nbMilliseconds + "ms.");
            Thread.sleep(nbMilliseconds);
        } catch (InterruptedException e) {
            throw new IllegalStateException(e);
        }
    }
}

Related

  1. pause(int secs)
  2. pause(long low, long high)
  3. pause(long milli)
  4. pause(long millis)
  5. pause(long milliseconds)
  6. pause(long pause)
  7. pause(long t)
  8. pauseForTime(String pauseTime)
  9. pauseln(Object obj)