Java Sleep sleep(long ms)

Here you can find the source of sleep(long ms)

Description

sleep

License

BSD License

Declaration

private static void sleep(long ms) 

Method Source Code

//package com.java2s;
/*******************************************************************************
 * Copyright Duke Comprehensive Cancer Center and SemanticBits
 * //from  w w w . ja v a 2  s.  c  o m
 * Distributed under the OSI-approved BSD 3-Clause License.
 * See http://ncip.github.com/c3pr/LICENSE.txt for details.
 *******************************************************************************/

public class Main {
    private static void sleep(long ms) {
        Object sleep = new Object();
        try {
            synchronized (sleep) {
                sleep.wait(ms);
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}

Related

  1. sleep(long millis)
  2. sleep(long millis)
  3. Sleep(long milliseconds)
  4. sleep(long milliseconds)
  5. sleep(long milliTime)
  6. sleep(long ms)
  7. sleep(long ms)
  8. sleep(long msecs, boolean busy_sleep)
  9. sleep(long msecs, boolean busy_sleep)