diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2009-08-12 02:02:49 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2009-08-12 02:02:49 (GMT) |
commit | a696fe818333f168516929f734aad5359deac332 (patch) | |
tree | 85e758e91e5901157fa7c2e6cc5f02e41fce34dd /Source | |
parent | b7e3146275f3e8f9f376c150031d8bcc39a37439 (diff) | |
download | CMake-a696fe818333f168516929f734aad5359deac332.zip CMake-a696fe818333f168516929f734aad5359deac332.tar.gz CMake-a696fe818333f168516929f734aad5359deac332.tar.bz2 |
Output total time when using -j N
Diffstat (limited to 'Source')
-rw-r--r-- | Source/CTest/cmCTestMultiProcessHandler.cxx | 2 | ||||
-rw-r--r-- | Source/CTest/cmCTestTestHandler.cxx | 2 | ||||
-rw-r--r-- | Source/CTest/cmProcess.h | 1 |
3 files changed, 3 insertions, 2 deletions
diff --git a/Source/CTest/cmCTestMultiProcessHandler.cxx b/Source/CTest/cmCTestMultiProcessHandler.cxx index e231c33..70ca4c0 100644 --- a/Source/CTest/cmCTestMultiProcessHandler.cxx +++ b/Source/CTest/cmCTestMultiProcessHandler.cxx @@ -248,7 +248,7 @@ void cmCTestMultiProcessHandler::EndTest(cmProcess* p) int exitVal = p->GetExitValue(); cmCTestTestHandler::cmCTestTestResult cres; cres.Properties = 0; - cres.ExecutionTime = 0;// ??? + cres.ExecutionTime = p->GetTotalTime(); cres.ReturnValue = exitVal; cres.Status = cmCTestTestHandler::COMPLETED; cres.TestCount = test; diff --git a/Source/CTest/cmCTestTestHandler.cxx b/Source/CTest/cmCTestTestHandler.cxx index 1e41371..3407048 100644 --- a/Source/CTest/cmCTestTestHandler.cxx +++ b/Source/CTest/cmCTestTestHandler.cxx @@ -592,7 +592,7 @@ int cmCTestTestHandler::ProcessHandler() char buf[1024]; sprintf(buf, "%6.2f sec", totalTestTime); - cmCTestLog(this->CTest, HANDLER_OUTPUT, "\nTotal CPU time = " + cmCTestLog(this->CTest, HANDLER_OUTPUT, "\nTotal Test time = " << buf << "\n" ); } diff --git a/Source/CTest/cmProcess.h b/Source/CTest/cmProcess.h index 67a5268..8b943c0 100644 --- a/Source/CTest/cmProcess.h +++ b/Source/CTest/cmProcess.h @@ -53,6 +53,7 @@ public: int GetId() { return this->Id; } void SetId(int id) { this->Id = id;} int GetExitValue() { return this->ExitValue;} + double GetTotalTime() { return this->TotalTime;} private: int LastOutputPipe; double Timeout; |