diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2008-01-30 16:17:36 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2008-01-30 16:17:36 (GMT) |
commit | c4093afc52967c987f0cd2947949899642db977b (patch) | |
tree | fc180b4f3276461339435fef3e47dbfead203932 /Source/CTest/cmCTestConfigureHandler.cxx | |
parent | 45d0dd13444a8f07d90004ca8ebefdc18498ed62 (diff) | |
download | CMake-c4093afc52967c987f0cd2947949899642db977b.zip CMake-c4093afc52967c987f0cd2947949899642db977b.tar.gz CMake-c4093afc52967c987f0cd2947949899642db977b.tar.bz2 |
ENH: enhancements for cdash, include system information and better time entries
Diffstat (limited to 'Source/CTest/cmCTestConfigureHandler.cxx')
-rw-r--r-- | Source/CTest/cmCTestConfigureHandler.cxx | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Source/CTest/cmCTestConfigureHandler.cxx b/Source/CTest/cmCTestConfigureHandler.cxx index 1a67289..b81767b 100644 --- a/Source/CTest/cmCTestConfigureHandler.cxx +++ b/Source/CTest/cmCTestConfigureHandler.cxx @@ -74,6 +74,8 @@ int cmCTestConfigureHandler::ProcessHandler() return 1; } std::string start_time = this->CTest->CurrentTime(); + unsigned int start_time_time = static_cast<unsigned int>( + cmSystemTools::GetTime()); cmGeneratedFileStream ofs; this->StartLogFile("Configure", ofs); @@ -93,7 +95,10 @@ int cmCTestConfigureHandler::ProcessHandler() this->CTest->StartXML(os); os << "<Configure>\n" << "\t<StartDateTime>" << start_time << "</StartDateTime>" - << std::endl; + << std::endl + << "\t<StartConfigureTime>" << start_time_time + << "</StartConfigureTime>\n"; + if ( res == cmsysProcess_State_Exited && retVal ) { os << retVal; @@ -105,6 +110,9 @@ int cmCTestConfigureHandler::ProcessHandler() std::string end_time = this->CTest->CurrentTime(); os << "\t<ConfigureStatus>" << retVal << "</ConfigureStatus>\n" << "\t<EndDateTime>" << end_time << "</EndDateTime>\n" + << "\t<EndConfigureTime>" << + static_cast<unsigned int>(cmSystemTools::GetTime()) + << "</EndConfigureTime>\n" << "<ElapsedMinutes>" << static_cast<int>( (cmSystemTools::GetTime() - elapsed_time_start)/6)/10.0 |