diff --git a/Source/CTest/cmCTestTestHandler.cxx b/Source/CTest/cmCTestTestHandler.cxx index 83178a3bb..1af1cf981 100644 --- a/Source/CTest/cmCTestTestHandler.cxx +++ b/Source/CTest/cmCTestTestHandler.cxx @@ -991,6 +991,9 @@ void cmCTestTestHandler::ProcessDirectory(std::vector &passed, std::vector &failed) { this->ComputeTestList(); + this->StartTest = this->CTest->CurrentTime(); + this->StartTestTime = static_cast(cmSystemTools::GetTime()); + double elapsed_time_start = cmSystemTools::GetTime(); cmCTestMultiProcessHandler parallel; parallel.SetCTest(this->CTest); @@ -1041,6 +1044,9 @@ void cmCTestTestHandler::ProcessDirectory(std::vector &passed, { parallel.RunTests(); } + this->EndTest = this->CTest->CurrentTime(); + this->EndTestTime = static_cast(cmSystemTools::GetTime()); + this->ElapsedTestingTime = cmSystemTools::GetTime() - elapsed_time_start; *this->LogFile << "End testing: " << this->CTest->CurrentTime() << std::endl; }