Java Sleep sleepyMillis(long millis)

Here you can find the source of sleepyMillis(long millis)

Description

Sleeps for the given count of milli seconds (1000ms = 1sec).

License

Open Source License

Parameter

Parameter Description
millis the count of milli seconds

Declaration

public static void sleepyMillis(long millis) 

Method Source Code

//package com.java2s;

public class Main {
    /**// w ww .j av  a 2 s .c  o m
     * Sleeps for the given count of milli seconds (1000ms = 1sec). InterruptedException
     * are all ignored.
     * 
     * @param millis the count of milli seconds
     */
    public static void sleepyMillis(long millis) {
        try {
            Thread.sleep(millis);
        } catch (InterruptedException e) {
        }
    }
}

Related

  1. sleepUntil(long time)
  2. sleepUntil(long timestamp)
  3. sleepUpTo(final long millis)
  4. sleepWithoutInterrupt(final long msToWait)
  5. sleepWithoutInterruptions(long milliseconds)