Here you can find the source of sleepMilliseconds(long milliseconds)
Parameter | Description |
---|---|
milliseconds | a parameter |
public static void sleepMilliseconds(long milliseconds)
//package com.java2s; //License from project: Apache License import java.util.concurrent.TimeUnit; public class Main { /**/*from w w w. j a v a 2 s. c o m*/ * Sleep in the unit of milliseconds. * @param milliseconds */ public static void sleepMilliseconds(long milliseconds) { try { TimeUnit.MILLISECONDS.sleep(milliseconds); } catch (InterruptedException e) { } } }