Java Thread Pause pause(int millis)

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

Description

Puts the the thread to sleep

License

Apache License

Parameter

Parameter Description
millis Milliseconds to sleep the thread four.

Declaration

public static boolean pause(int millis) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    /**//from w ww  . j a  v  a  2 s .com
     * Puts the the thread to sleep
     * 
     * @param millis Milliseconds to sleep the thread four.
     */
    public static boolean pause(int millis) {
        try {
            Thread.sleep(millis);
        } catch (InterruptedException e) {
            e.printStackTrace();
            return false;
        }

        return true;
    }
}

Related

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