Java Sleep sleep(long millis)

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

Description

sleep

License

LGPL

Declaration

public static void sleep(long millis) 

Method Source Code

//package com.java2s;
//License from project: LGPL 

public class Main {
    public static void sleep(long millis) {
        try {//  ww  w .  j  a  va2s .  c om
            Thread.sleep(millis);
        } catch (InterruptedException interruptedException) {
            throw new RuntimeException("Unable to sleep for " + millis + " millis.", interruptedException);
        }
    }
}

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)