Java Sleep sleep(long l)

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

Description

Small Utility to consume the InterruptedException associated wiht Thread.sleep

License

Open Source License

Parameter

Parameter Description
l a parameter

Declaration

public static void sleep(long l) 

Method Source Code

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

public class Main {
    /**//from w w  w  . j  a  v  a 2s.co  m
     * Small Utility to consume the InterruptedException associated wiht Thread.sleep
     * 
     * @param l
     */
    public static void sleep(long l) {
        try {
            Thread.sleep(l);
        } catch (final InterruptedException e) {
        }
    }
}

Related

  1. sleep(int toSleep)
  2. sleep(Integer seconds)
  3. sleep(Integer threadWaitInMs)
  4. sleep(long duration)
  5. sleep(long interval)
  6. sleep(long milli)
  7. sleep(long millions)
  8. sleep(long millis)
  9. sleep(long millis)