Java Sleep sleep()

Here you can find the source of sleep()

Description

sleep

License

Apache License

Declaration

public static void sleep() throws InterruptedException 

Method Source Code

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

public class Main {
    public static final long TIMEOUT = 5000;

    public static void sleep() throws InterruptedException {
        sleep(TIMEOUT);/*  ww w.  j  a v  a  2 s.co  m*/
    }

    public static void sleep(long timeout) throws InterruptedException {
        Thread.sleep(TIMEOUT);
    }
}

Related

  1. sleep()
  2. sleep()
  3. sleep()
  4. sleep()
  5. sleep(double numSeconds)