Java Thread Pause pause(double timeInSec)

Here you can find the source of pause(double timeInSec)

Description

pause

License

Open Source License

Declaration

public static void pause(double timeInSec) 

Method Source Code

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

public class Main {
    public static void pause(double timeInSec) {
        long start = System.currentTimeMillis();
        while (System.currentTimeMillis() < (start + (timeInSec * 1000))) {
            // do nothing
        }/*from   ww w  .  j  a  v a2  s.  c o  m*/
    }
}

Related

  1. pause (final int msec)
  2. pause()
  3. pause(double seconds)
  4. pause(double seconds)
  5. pause(final long time)
  6. pause(int i, String unit)
  7. pause(int millis)
  8. pause(int millis)