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/cmCTestUpdateHandler.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/cmCTestUpdateHandler.cxx')
-rw-r--r-- | Source/CTest/cmCTestUpdateHandler.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/CTest/cmCTestUpdateHandler.cxx b/Source/CTest/cmCTestUpdateHandler.cxx index e47f967..a8afe12 100644 --- a/Source/CTest/cmCTestUpdateHandler.cxx +++ b/Source/CTest/cmCTestUpdateHandler.cxx @@ -541,6 +541,7 @@ int cmCTestUpdateHandler::ProcessHandler() return -1; } std::string start_time = this->CTest->CurrentTime(); + unsigned int start_time_time = cmSystemTools::GetTime(); double elapsed_time_start = cmSystemTools::GetTime(); cmCTestLog(this->CTest, HANDLER_VERBOSE_OUTPUT, "* Update repository: " @@ -606,6 +607,7 @@ int cmCTestUpdateHandler::ProcessHandler() << "\t<BuildStamp>" << this->CTest->GetCurrentTag() << "-" << this->CTest->GetTestModelString() << "</BuildStamp>" << std::endl; os << "\t<StartDateTime>" << start_time << "</StartDateTime>\n" + << "\t<StartTime>" << start_time_time << "</StartTime>\n" << "\t<UpdateCommand>" << this->CTest->MakeXMLSafe(command) << "</UpdateCommand>\n" << "\t<UpdateType>" << this->CTest->MakeXMLSafe( @@ -1076,6 +1078,8 @@ int cmCTestUpdateHandler::ProcessHandler() cmCTestLog(this->CTest, DEBUG, "End" << std::endl); std::string end_time = this->CTest->CurrentTime(); os << "\t<EndDateTime>" << end_time << "</EndDateTime>\n" + << "\t<EndTime>" << static_cast<unsigned int>(cmSystemTools::GetTime()) + << "</EndTime>\n" << "<ElapsedMinutes>" << static_cast<int>((cmSystemTools::GetTime() - elapsed_time_start)/6)/10.0 << "</ElapsedMinutes>\n" |