Java Sleep sleepForSecs(double numSecs)

Here you can find the source of sleepForSecs(double numSecs)

Description

sleep For Secs

License

Apache License

Declaration

public static void sleepForSecs(double numSecs) 

Method Source Code

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

public class Main {
    public static void sleepForSecs(double numSecs) {
        // give the elements time to be evicted
        try {/*from   w  w  w.  j a v  a  2 s  . c o  m*/
            Thread.sleep((long) (numSecs * 1000));
        } catch (InterruptedException e) {
        }
    }
}

Related

  1. sleepForever()
  2. sleepForever()
  3. sleepForever()
  4. sleepForIOCatchup()
  5. sleepForReal(long time)
  6. sleepForSomeTime(long milliseconds)
  7. sleepForTimestamp()
  8. sleepIgnoreInterupt(long millis)
  9. sleepInterruptible(long timeMillis)