diff options
author | Zach Mullen <zach.mullen@kitware.com> | 2009-08-31 14:28:39 (GMT) |
---|---|---|
committer | Zach Mullen <zach.mullen@kitware.com> | 2009-08-31 14:28:39 (GMT) |
commit | 59b34a6a1a3242a9224660189835abc545a5a760 (patch) | |
tree | 44635609436c8a1fab1b80f1d5bb4a921271d209 /Source | |
parent | 5a5cc522309a21cda8449912f457282f941641e1 (diff) | |
download | CMake-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.cxx | 6 |
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; } |