Add Total-Wall-Time

The Total-Time is slightly confusing since it's the geomean of the
average of eacn substest time, which is not particularly useful.

Change-Id: If6a6d9f8172a9f355c07001fb804126d67db9d55
Reviewed-on: https://chromium-review.googlesource.com/c/external/github.com/WebKit/JetStream/+/7718205
Reviewed-by: Darius Mercadier <dmercadier@chromium.org>
diff --git a/JetStreamDriver.js b/JetStreamDriver.js
index e829fed..2c323a1 100644
--- a/JetStreamDriver.js
+++ b/JetStreamDriver.js
@@ -250,6 +250,7 @@
         this.counter.loadedResources = 0;
         this.counter.totalResources = 0;
         this.counter.failedPreloadResources = 0;
+        this.totalWallTime = 0;
     }
 
     addPlan(plan, BenchmarkClass = DefaultBenchmark) {
@@ -283,6 +284,7 @@
             }
 
             benchmark.updateUIAfterRun();
+            this.totalWallTime += (benchmark.endTime - benchmark.startTime);
 
             if (isInBrowser) {
                 let cache = JetStream.blobDataCache;
@@ -353,6 +355,7 @@
             console.log("\nTotals:");
             console.log("    Total-Time:", uiFriendlyDuration(geomean(allTimes)));
             console.log("    Total-Score:", uiFriendlyNumber(geomean(allScores)));
+            console.log("    Total-Wall-Time:", uiFriendlyDuration(this.totalWallTime));
         }
 
         this.reportScoreToRunBenchmarkRunner();