From 4272e50d67e6ca260a6b30342d6d2c80aabdcad8 Mon Sep 17 00:00:00 2001 From: Stepan Koltsov Date: Thu, 19 Apr 2012 14:05:38 +0400 Subject: [PATCH] print what is currently compiled --- .../codegen/forTestCompile/ForTestCompileSomething.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/compiler/tests/org/jetbrains/jet/codegen/forTestCompile/ForTestCompileSomething.java b/compiler/tests/org/jetbrains/jet/codegen/forTestCompile/ForTestCompileSomething.java index db89557f1c6..69d46985ce0 100644 --- a/compiler/tests/org/jetbrains/jet/codegen/forTestCompile/ForTestCompileSomething.java +++ b/compiler/tests/org/jetbrains/jet/codegen/forTestCompile/ForTestCompileSomething.java @@ -40,6 +40,8 @@ abstract class ForTestCompileSomething { private File jarFile; ForTestCompileSomething(@NotNull String jarName) { + System.out.println("Compiling " + jarName + "..."); + long start = System.currentTimeMillis(); this.jarName = jarName; try { File tmpDir = JetTestUtils.tmpDir("runtimejar"); @@ -67,11 +69,17 @@ abstract class ForTestCompileSomething { } FileUtil.delete(classesDir); + long end = System.currentTimeMillis(); + System.out.println("Compiling " + jarName + " done in " + millisecondsToSecondsString(end - start) + "s"); } catch (Throwable e) { error = e; } } + private static String millisecondsToSecondsString(long millis) { + return millis / 1000 + "." + String.format("%03d", millis % 1000); + } + private static void copyToJar(File root, JarOutputStream os) throws IOException { Stack> toCopy = new Stack>(); toCopy.add(new Pair("", root));