Java Sleep sleep(long time)

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

Description

sleep

License

Apache License

Declaration

static void sleep(long time) 

Method Source Code

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

public class Main {
    static void sleep(long time) {
        try {/*from   ww w. j a  va 2  s . co m*/
            Thread.sleep(time);
        } catch (InterruptedException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
    }
}

Related

  1. sleep(long ms)
  2. sleep(long msecs, boolean busy_sleep)
  3. sleep(long msecs, boolean busy_sleep)
  4. sleep(long sleepTime)
  5. sleep(long sleepTime)
  6. sleep(long time)
  7. sleep(long time)
  8. sleep(long time)
  9. sleep(long timeToSleep)