diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2008-12-29 22:49:17 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2008-12-29 22:49:17 (GMT) |
commit | ede2be4be13993077dbd738ea38dfb895beba420 (patch) | |
tree | 44fff9a1eb858ce607328a7ff952845a96958687 /Source/CTest/cmProcess.cxx | |
parent | 38b7b3fea0d5ab5bad8a658568264cfa8abeed27 (diff) | |
download | CMake-ede2be4be13993077dbd738ea38dfb895beba420.zip CMake-ede2be4be13993077dbd738ea38dfb895beba420.tar.gz CMake-ede2be4be13993077dbd738ea38dfb895beba420.tar.bz2 |
ENH: add start end time for procs
Diffstat (limited to 'Source/CTest/cmProcess.cxx')
-rw-r--r-- | Source/CTest/cmProcess.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/CTest/cmProcess.cxx b/Source/CTest/cmProcess.cxx index 0d2635d..75db654 100644 --- a/Source/CTest/cmProcess.cxx +++ b/Source/CTest/cmProcess.cxx @@ -16,6 +16,7 @@ =========================================================================*/ #include <cmProcess.h> +#include <cmSystemTools.h> cmProcess::cmProcess() { @@ -43,6 +44,7 @@ bool cmProcess::StartProcess() { return false; } + this->StartTime = cmSystemTools::GetTime(); this->ProcessArgs.clear(); // put the command as arg0 this->ProcessArgs.push_back(this->Command.c_str()); @@ -210,6 +212,8 @@ bool cmProcess::IsRunning() // if the process is done, then wait for it to exit cmsysProcess_WaitForExit(this->Process, 0); this->ExitValue = cmsysProcess_GetExitValue(this->Process); + this->TotalTime = cmSystemTools::GetTime() - this->StartTime; +// std::cerr << "Time to run: " << this->TotalTime << "\n"; return false; } |