summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorZach Mullen <zach.mullen@kitware.com>2009-08-31 14:28:39 (GMT)
committerZach Mullen <zach.mullen@kitware.com>2009-08-31 14:28:39 (GMT)
commit59b34a6a1a3242a9224660189835abc545a5a760 (patch)
tree44635609436c8a1fab1b80f1d5bb4a921271d209 /Source
parent5a5cc522309a21cda8449912f457282f941641e1 (diff)
downloadCMake-59b34a6a1a3242a9224660189835abc545a5a760.zip
CMake-59b34a6a1a3242a9224660189835abc545a5a760.tar.gz
CMake-59b34a6a1a3242a9224660189835abc545a5a760.tar.bz2
Fixed Dart time recording for ctest
Diffstat (limited to 'Source')
-rw-r--r--Source/CTest/cmCTestTestHandler.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/CTest/cmCTestTestHandler.cxx b/Source/CTest/cmCTestTestHandler.cxx
index 83178a3..1af1cf9 100644
--- a/Source/CTest/cmCTestTestHandler.cxx
+++ b/Source/CTest/cmCTestTestHandler.cxx
@@ -991,6 +991,9 @@ void cmCTestTestHandler::ProcessDirectory(std::vector<cmStdString> &passed,
std::vector<cmStdString> &failed)
{
this->ComputeTestList();
+ this->StartTest = this->CTest->CurrentTime();
+ this->StartTestTime = static_cast<unsigned int>(cmSystemTools::GetTime());
+ double elapsed_time_start = cmSystemTools::GetTime();
cmCTestMultiProcessHandler parallel;
parallel.SetCTest(this->CTest);
@@ -1041,6 +1044,9 @@ void cmCTestTestHandler::ProcessDirectory(std::vector<cmStdString> &passed,
{
parallel.RunTests();
}
+ this->EndTest = this->CTest->CurrentTime();
+ this->EndTestTime = static_cast<unsigned int>(cmSystemTools::GetTime());
+ this->ElapsedTestingTime = cmSystemTools::GetTime() - elapsed_time_start;
*this->LogFile << "End testing: "
<< this->CTest->CurrentTime() << std::endl;
}