| 272 | } |
| 273 | |
| 274 | std::string cmCTest::CurrentTime() |
| 275 | { |
| 276 | time_t currenttime = time(nullptr); |
| 277 | struct tm* t = localtime(¤ttime); |
| 278 | // return ::CleanString(ctime(¤ttime)); |
| 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 | |
| 289 | std::string cmCTest::GetCostDataFile() |
| 290 | { |
no outgoing calls
no test coverage detected