summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmCTestScriptHandler.h
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2006-10-19 14:45:19 (GMT)
committerKen Martin <ken.martin@kitware.com>2006-10-19 14:45:19 (GMT)
commitf7a5289e318e3802737a2629c7fe2ed24dbfc5b9 (patch)
tree200ff8466c8dd3da1cec87f51689eaea6651b50e /Source/CTest/cmCTestScriptHandler.h
parent2fd1b374c17f4da904a0f3e62802a352f8ab6c72 (diff)
downloadCMake-f7a5289e318e3802737a2629c7fe2ed24dbfc5b9.zip
CMake-f7a5289e318e3802737a2629c7fe2ed24dbfc5b9.tar.gz
CMake-f7a5289e318e3802737a2629c7fe2ed24dbfc5b9.tar.bz2
ENH: added total time limit for a CTest run bug 1207
Diffstat (limited to 'Source/CTest/cmCTestScriptHandler.h')
-rw-r--r--Source/CTest/cmCTestScriptHandler.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/CTest/cmCTestScriptHandler.h b/Source/CTest/cmCTestScriptHandler.h
index 503ddcc..f82f3ea 100644
--- a/Source/CTest/cmCTestScriptHandler.h
+++ b/Source/CTest/cmCTestScriptHandler.h
@@ -96,6 +96,13 @@ public:
static void SleepInSeconds(unsigned int secondsToWait);
void UpdateElapsedTime();
+ /**
+ * Return the time remaianing that the script is allowed to run in
+ * seconds if the user has set the variable CTEST_TIME_LIMIT. If that has
+ * not been set it returns 1e7 seconds
+ */
+ double GetRemainingTimeAllowed();
+
cmCTestScriptHandler();
~cmCTestScriptHandler();