Java Sleep Sleep(long milliseconds)

Here you can find the source of Sleep(long milliseconds)

Description

Causes the current thread to sleep for a certain length of time.

License

Open Source License

Parameter

Parameter Description
milliseconds The number of milliseconds that the thread should sleep

Exception

Parameter Description
Exception an exception

Declaration

public static void Sleep(long milliseconds) throws Exception 

Method Source Code

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

public class Main {
    /** Causes the current thread to sleep for a certain length of time.
     *//  w  ww.java2s. com
     * @param milliseconds The number of milliseconds that the thread should sleep
     * @throws Exception
     */
    public static void Sleep(long milliseconds) throws Exception {
        Thread.currentThread().sleep(milliseconds);
    }
}

Related

  1. sleep(Long millis)
  2. sleep(long millis)
  3. sleep(long millis)
  4. sleep(long millis)
  5. sleep(long milliseconds)
  6. sleep(long milliTime)
  7. sleep(long ms)
  8. sleep(long ms)
  9. sleep(long ms)