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

Method CurrentTime

Source/cmCTest.cxx:274–287  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

272}
273
274std::string cmCTest::CurrentTime()
275{
276 time_t currenttime = time(nullptr);
277 struct tm* t = localtime(&currenttime);
278 // return ::CleanString(ctime(&currenttime));
279 char current_time[1024];
280 if (this->Impl->ShortDateFormat) {
281 strftime(current_time, 1000, "%b %d %H:%M %Z", t);
282 } else {
283 strftime(current_time, 1000, "%a %b %d %H:%M:%S %Z %Y", t);
284 }
285 cmCTestLog(this, DEBUG, " Current_Time: " << current_time << std::endl);
286 return cmCTest::CleanString(current_time);
287}
288
289std::string cmCTest::GetCostDataFile()
290{

Callers 14

cmCMakeString.cxxFile · 0.45
ExecuteUpdateMethod · 0.45
ProcessDirectoryMethod · 0.45
ExecuteConfigureMethod · 0.45
ProcessHandlerMethod · 0.45
StartCoverageLogXMLMethod · 0.45
EndCoverageLogXMLMethod · 0.45
ProcessHandlerMethod · 0.45
EndTestMethod · 0.45
StartTestMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected