Java Thread Pause pause(int ms)

Here you can find the source of pause(int ms)

Description

Pause du thread courant

License

Open Source License

Parameter

Parameter Description
ms temps de pause en millisecondes

Declaration

static public void pause(int ms) 

Method Source Code

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

public class Main {
    /**//from   w  ww.j a  va  2  s  . c  o  m
     * Pause du thread courant
     * @param ms temps de pause en millisecondes
     */
    static public void pause(int ms) {
        try {
            Thread.currentThread().sleep(ms);
        } catch (Exception e) {
        }
    }
}

Related

  1. pause(final long time)
  2. pause(int i, String unit)
  3. pause(int millis)
  4. pause(int millis)
  5. pause(int milliseconds)
  6. pause(int secs)
  7. pause(long low, long high)
  8. pause(long milli)
  9. pause(long millis)