[Cmake-commits] [cmake-commits] hoffman committed cmProcess.h 1.2 1.3 cmProcess.cxx 1.3 1.4
cmake-commits at cmake.org
cmake-commits at cmake.org
Mon Dec 29 17:49:19 EST 2008
Update of /cvsroot/CMake/CMake/Source/CTest
In directory public:/mounts/ram/cvs-serv20837
Modified Files:
cmProcess.h cmProcess.cxx
Log Message:
ENH: add start end time for procs
Index: cmProcess.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/CTest/cmProcess.cxx,v
retrieving revision 1.3
retrieving revision 1.4
diff -C 2 -d -r1.3 -r1.4
*** cmProcess.cxx 2 Oct 2008 13:18:47 -0000 1.3
--- cmProcess.cxx 29 Dec 2008 22:49:17 -0000 1.4
***************
*** 17,20 ****
--- 17,21 ----
#include <cmProcess.h>
+ #include <cmSystemTools.h>
cmProcess::cmProcess()
***************
*** 44,47 ****
--- 45,49 ----
return false;
}
+ this->StartTime = cmSystemTools::GetTime();
this->ProcessArgs.clear();
// put the command as arg0
***************
*** 211,214 ****
--- 213,218 ----
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;
}
Index: cmProcess.h
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/CTest/cmProcess.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -C 2 -d -r1.2 -r1.3
*** cmProcess.h 3 Jul 2008 17:55:36 -0000 1.2
--- cmProcess.h 29 Dec 2008 22:49:17 -0000 1.3
***************
*** 57,60 ****
--- 57,62 ----
int LastOutputPipe;
double Timeout;
+ double StartTime;
+ double TotalTime;
cmsysProcess* Process;
std::vector<char> StdErrorBuffer;
More information about the Cmake-commits
mailing list