Here you can find the source of Sleep(long milliseconds)
Parameter | Description |
---|---|
milliseconds | The number of milliseconds that the thread should sleep |
Parameter | Description |
---|---|
Exception | an exception |
public static void Sleep(long milliseconds) throws Exception
//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); } }