changeset 238:09856c3cb8e2

More debugging output in RawResults.
author shade
date Tue, 12 Nov 2013 15:55:45 +0100
parents da27dc2c3275
children 238aad2065dc
files jmh-core/src/main/java/org/openjdk/jmh/logic/results/RawResults.java
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/jmh-core/src/main/java/org/openjdk/jmh/logic/results/RawResults.java	Mon Nov 11 11:51:59 2013 +0100
+++ b/jmh-core/src/main/java/org/openjdk/jmh/logic/results/RawResults.java	Tue Nov 12 15:55:45 2013 +0100
@@ -46,8 +46,11 @@
         this.opsPerInv = opsPerInv;
     }
 
+    private static long baseTime = System.nanoTime();
+
     public void printOut() {
-        System.err.printf("(stop-start)=%10d, real=%10d, ops=%10d, thr=%10d, thrReal=%10d%n",
+        System.err.printf("start=%10d, stop=%10d, (stop-start)=%10d, real=%10d, ops=%10d, thr=%10d, thrReal=%10d%n",
+                TimeUnit.NANOSECONDS.toMicros(startTime - baseTime), TimeUnit.NANOSECONDS.toMicros(stopTime - baseTime),
                 TimeUnit.NANOSECONDS.toMicros(stopTime - startTime), TimeUnit.NANOSECONDS.toMicros(realTime),
                 operations, (operations*1000*1000/(stopTime - startTime)), (operations*1000*1000/realTime));
     }