public class Main { public static void main(String[] args) throws Exception { long start = System.currentTimeMillis(); while (System.currentTimeMillis() - start <= 3000); } }