long start = System.currentTimeMillis(); Thread.currentThread().sleep(1000); System.out.println("Run time : " + (System.currentTimeMillis() - start));