Java Thread Pause pause(long t)

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

Description

To Pause the thread

License

Open Source License

Parameter

Parameter Description
t a parameter

Declaration

public static void pause(long t) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    /**//from  w  w w  .  j a va  2  s .  c om
     * To Pause the thread
     * @param t
     */
    public static void pause(long t) {

        try {
            Thread.sleep(t);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}

Related

  1. pause(long milli)
  2. pause(long millis)
  3. pause(long milliseconds)
  4. pause(long nbMilliseconds)
  5. pause(long pause)
  6. pauseForTime(String pauseTime)
  7. pauseln(Object obj)
  8. pauseRequests(int length)
  9. pauseWaitUntil(long untilTargetTime)