MCPcopy Create free account
hub / github.com/Kitware/CMake / UpdateElapsedTime

Method UpdateElapsedTime

Source/CTest/cmCTestScriptHandler.cxx:65–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65void cmCTestScriptHandler::UpdateElapsedTime()
66{
67 if (this->Makefile) {
68 // set the current elapsed time
69 auto itime = cmDurationTo<unsigned int>(this->CTest->GetElapsedTime());
70 auto timeString = std::to_string(itime);
71 this->Makefile->AddDefinition("CTEST_ELAPSED_TIME", timeString);
72 }
73}
74
75int cmCTestScriptHandler::ExecuteScript(std::string const& total_script_arg)
76{

Callers 1

ReadInScriptMethod · 0.95

Calls 3

to_stringFunction · 0.85
GetElapsedTimeMethod · 0.80
AddDefinitionMethod · 0.45

Tested by

no test coverage detected