Fixed Dart time recording for ctest

This commit is contained in:
Zach Mullen 2009-08-31 10:28:39 -04:00
parent 5a5cc52230
commit 59b34a6a1a
1 changed files with 6 additions and 0 deletions

View File

@ -991,6 +991,9 @@ void cmCTestTestHandler::ProcessDirectory(std::vector<cmStdString> &passed,
std::vector<cmStdString> &failed) std::vector<cmStdString> &failed)
{ {
this->ComputeTestList(); this->ComputeTestList();
this->StartTest = this->CTest->CurrentTime();
this->StartTestTime = static_cast<unsigned int>(cmSystemTools::GetTime());
double elapsed_time_start = cmSystemTools::GetTime();
cmCTestMultiProcessHandler parallel; cmCTestMultiProcessHandler parallel;
parallel.SetCTest(this->CTest); parallel.SetCTest(this->CTest);
@ -1041,6 +1044,9 @@ void cmCTestTestHandler::ProcessDirectory(std::vector<cmStdString> &passed,
{ {
parallel.RunTests(); 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->LogFile << "End testing: "
<< this->CTest->CurrentTime() << std::endl; << this->CTest->CurrentTime() << std::endl;
} }