Make it clearer what's going on at the end of tests.
BUG=
R=reed@google.com

Author: mtklein@google.com

Review URL: https://chromiumcodereview.appspot.com/14267022

git-svn-id: http://skia.googlecode.com/svn/trunk@8803 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/tests/Test.cpp b/tests/Test.cpp
index 408e14f..81c4ef9 100644
--- a/tests/Test.cpp
+++ b/tests/Test.cpp
@@ -9,6 +9,7 @@
 
 #include "SkString.h"
 #include "SkTArray.h"
+#include "SkTime.h"
 
 #if SK_SUPPORT_GPU
 #include "GrContext.h"
@@ -80,11 +81,13 @@
     // Tell (likely shared) fReporter that this test has started.
     fReporter->startTest(this);
 
+    const SkMSec start = SkTime::GetMSecs();
     // Run the test into a LocalReporter so we know if it's passed or failed without interference
     // from other tests that might share fReporter.
     LocalReporter local;
     this->onRun(&local);
     fPassed = local.failure_size() == 0;
+    fElapsed = SkTime::GetMSecs() - start;
 
     // Now tell fReporter about any failures and wrap up.
     for (int i = 0; i < local.failure_size(); i++) {