Java Sleep sleep(int ms)

Here you can find the source of sleep(int ms)

Description

sleep

License

Apache License

Declaration

public static boolean sleep(int ms) 

Method Source Code

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

public class Main {
    public static boolean sleep(int ms) {
        try {//www.  j  a va 2  s .  c o m
            Thread.sleep(ms);
        } catch (InterruptedException e) {
            e.printStackTrace();
            return false;
        }
        return true;
    }
}

Related

  1. sleep(int millis)
  2. sleep(int millis, int micros)
  3. sleep(int milliseconds)
  4. sleep(int milliseconds, boolean isRecordMode)
  5. sleep(int minwait, int maxwait)
  6. sleep(int ms)
  7. sleep(int retryInterval)
  8. sleep(int sec)
  9. sleep(int seconds)