Obténir le temps écoulé en millisecondes

Author:

Obténir,le,temps,écoulé,en,millisecondes
{filelink=6318}


public class TempsEcouleMillis
{
  public static void main(String[] argv) throws Exception
  {
    long debut = System.currentTimeMillis();

    Thread.sleep(1000);

    long tempsEcoulMillis = System.currentTimeMillis() - debut;
    System.out.println(tempsEcoulMillis);
  }
}

Leave a Reply

Your email address will not be published. Required fields are marked *