Java Sleep sleep(final int timeMs)

Here you can find the source of sleep(final int timeMs)

Description

sleep

License

Open Source License

Declaration

public static void sleep(final int timeMs) 

Method Source Code

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

public class Main {
    public static void sleep(final int timeMs) {
        new Thread() {

            public void run() {
                try {
                    sleep(timeMs);//  w  w  w.  j a va  2 s. c o  m
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
                super.run();
            }
        }.start();
    }
}

Related

  1. sleep(double numSeconds)
  2. sleep(double seconds)
  3. sleep(double secs)
  4. sleep(final int millis)
  5. sleep(final int ms)
  6. sleep(final long miliseconds)
  7. sleep(final long millis)
  8. sleep(final long milliseconds)
  9. sleep(final long milliseconds)