jdk/test/com/sun/jdi/TestScaffold.java
changeset 37321 d069569242e3
parent 36424 741c43b676d4
--- a/jdk/test/com/sun/jdi/TestScaffold.java	Tue Mar 22 19:29:25 2016 +0100
+++ b/jdk/test/com/sun/jdi/TestScaffold.java	Tue Mar 22 19:29:27 2016 +0100
@@ -64,6 +64,7 @@
     boolean vmDisconnected = false;
     final String[] args;
     protected boolean testFailed = false;
+    protected long startTime;
 
     static private class ArgInfo {
         String targetVMArgs = "";
@@ -425,6 +426,7 @@
     abstract protected void runTests() throws Exception;
 
     final public void startTests() throws Exception {
+        startTime = System.currentTimeMillis();
         try {
             runTests();
         } finally {
@@ -433,7 +435,8 @@
     }
 
     protected void println(String str) {
-        System.err.println(str);
+        long elapsed = System.currentTimeMillis() - startTime;
+        System.err.println("[" + elapsed + "ms] " + str);
     }
 
     protected void print(String str) {