From 835940f8ec6a2a9fa00a038dd6763b63916db70b Mon Sep 17 00:00:00 2001 From: "Peter D. Barnes, Jr." Date: Fri, 24 Aug 2012 15:03:13 -0700 Subject: [PATCH] test-runner reports times in seconds, not ms --- src/core/model/test.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/model/test.cc b/src/core/model/test.cc index c7eb4d955..3b6131d0d 100644 --- a/src/core/model/test.cc +++ b/src/core/model/test.cc @@ -474,6 +474,7 @@ TestRunnerImpl::PrintReport (TestCase *test, std::ostream *os, bool xml, int lev // Do not print reports for tests that were not run. return; } + // Report times in seconds, from ms timer const double MS_PER_SEC = 1000.; double real = test->m_result->clock.GetElapsedReal () / MS_PER_SEC; double user = test->m_result->clock.GetElapsedUser () / MS_PER_SEC; @@ -518,7 +519,7 @@ TestRunnerImpl::PrintReport (TestCase *test, std::ostream *os, bool xml, int lev else { *os << Indent (level) << statusString << " " << test->GetName () - << " " << real << "ms" << std::endl; + << " " << real << " s" << std::endl; if (m_verbose) { for (uint32_t i = 0; i < test->m_result->failure.size (); i++)