Android Thread Sleep sleep(long ms)

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

Description

sleep

Declaration

public static boolean sleep(long ms) 

Method Source Code

//package com.java2s;

public class Main {
    public static boolean sleep(long ms) {
        try {/*  w  w  w  .j ava2 s . c om*/
            if (ms > 0) {
                Thread.sleep(ms);
            }
            return true;
        } catch (InterruptedException e) {
            return false;
        }
    }
}

Related

  1. sleep(long ms)
  2. safeSleep(long millis)
  3. sleep(long milliseconds)
  4. doSleep(long ms)
  5. sleep(double numSeconds)