Java Sleep sleep(final long milliseconds)

Here you can find the source of sleep(final long milliseconds)

Description

Make thread call it sleep for specified time in milliseconds

License

Open Source License

Parameter

Parameter Description
milliseconds Time to sleep in milliseconds

Declaration

public static final void sleep(final long milliseconds) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    /**/*from   ww  w  .  j a v a 2 s  .co m*/
     * Make thread call it sleep for specified time in milliseconds
     * 
     * @param milliseconds
     *           Time to sleep in milliseconds
     */
    public static final void sleep(final long milliseconds) {
        try {
            Thread.sleep(milliseconds);
        } catch (final Exception exception) {
        }
    }
}

Related

  1. sleep(final int millis)
  2. sleep(final int ms)
  3. sleep(final int timeMs)
  4. sleep(final long miliseconds)
  5. sleep(final long millis)
  6. sleep(final long milliseconds)
  7. sleep(int delay)
  8. sleep(int i, String s)
  9. sleep(int millis)