Here you can find the source of sleepMilliseconds(long ms)
Sleeps for the specified time--in milliseconds.
Parameter | Description |
---|---|
ms | Number of milliseconds that the current thread sleeps. |
public static void sleepMilliseconds(long ms)
//package com.java2s; //License from project: LGPL public class Main { /**// ww w . ja v a2 s. com * <p>Sleeps for the specified time--in milliseconds.</p> * @param ms Number of milliseconds that the current * thread sleeps. */ public static void sleepMilliseconds(long ms) { try { Thread.sleep(ms); } catch (Exception e) { } } }