Java Sleep sleep(long sleepTime)

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

Description

sleep

License

Open Source License

Declaration

public static boolean sleep(long sleepTime) 

Method Source Code

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

public class Main {
    public static boolean sleep(long sleepTime) {
        try {//from w  w  w . ja  v  a2  s.c  o  m
            Thread.sleep(sleepTime);
            return true;
        } catch (InterruptedException e) {
            Thread.currentThread().interrupt();
            return false;
        }
    }
}

Related

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