| 358 | } |
| 359 | |
| 360 | void cmProcess::Finish() |
| 361 | { |
| 362 | this->TotalTime = std::chrono::steady_clock::now() - this->StartTime; |
| 363 | // Because of a processor clock skew the runtime may become slightly |
| 364 | // negative. If someone changed the system clock while the process was |
| 365 | // running this may be even more. Make sure not to report a negative |
| 366 | // duration here. |
| 367 | if (this->TotalTime <= cmDuration::zero()) { |
| 368 | this->TotalTime = cmDuration::zero(); |
| 369 | } |
| 370 | this->Runner->FinalizeTest(); |
| 371 | } |
| 372 | |
| 373 | cmProcess::State cmProcess::GetProcessStatus() |
| 374 | { |
no test coverage detected