summaryrefslogtreecommitdiffstats
path: root/Source/cmCTest.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-12-15 12:49:26 (GMT)
committerBrad King <brad.king@kitware.com>2018-01-08 17:55:00 (GMT)
commit2567e5df69c1a4276c5e51dfa6c49482b24b1545 (patch)
tree6e37780463de7b012829388d4873f3624392f3b3 /Source/cmCTest.h
parent1138feb38f4e6d259ded23312b7f0f2184ac816a (diff)
downloadCMake-2567e5df69c1a4276c5e51dfa6c49482b24b1545.zip
CMake-2567e5df69c1a4276c5e51dfa6c49482b24b1545.tar.gz
CMake-2567e5df69c1a4276c5e51dfa6c49482b24b1545.tar.bz2
cmCTest: Refactor stop time calculations
Calculate the stop time up front instead of re-parsing its string for every test.
Diffstat (limited to 'Source/cmCTest.h')
-rw-r--r--Source/cmCTest.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/cmCTest.h b/Source/cmCTest.h
index e1cf25e..61487f1 100644
--- a/Source/cmCTest.h
+++ b/Source/cmCTest.h
@@ -226,7 +226,10 @@ public:
bool ShouldCompressTestOutput();
bool CompressString(std::string& str);
- std::string GetStopTime() { return this->StopTime; }
+ std::chrono::system_clock::time_point GetStopTime()
+ {
+ return this->StopTime;
+ }
void SetStopTime(std::string const& time);
/** Used for parallel ctest job scheduling */
@@ -464,8 +467,7 @@ private:
bool RepeatUntilFail;
std::string ConfigType;
std::string ScheduleType;
- std::string StopTime;
- bool NextDayStopTime;
+ std::chrono::system_clock::time_point StopTime;
bool Verbose;
bool ExtraVerbose;
bool ProduceXML;
@@ -481,8 +483,6 @@ private:
int GenerateNotesFile(const char* files);
- void DetermineNextDayStop();
-
// these are helper classes
typedef std::map<std::string, cmCTestGenericHandler*> t_TestingHandlers;
t_TestingHandlers TestingHandlers;