Java Sleep sleep(long millis)

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

Description

sleep

License

Open Source License

Parameter

Parameter Description
millis The amount of time in milliseconds to attempt to sleep for

Declaration

public static final void sleep(long millis) 

Method Source Code

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

public class Main {
    /** @param millis The amount of time in milliseconds to attempt to sleep
     *            for *//*from  www .  ja v  a  2 s. c  om*/
    public static final void sleep(long millis) {
        try {
            Thread.sleep(millis);
        } catch (Throwable ignored) {
        }
    }
}

Related

  1. sleep(long millis)
  2. sleep(long millis)
  3. sleep(long millis)
  4. sleep(long millis)
  5. sleep(long millis)
  6. sleep(long millis)
  7. sleep(long millis)
  8. sleep(long millis)
  9. sleep(long millis)