diff options
author | Ken Martin <ken.martin@kitware.com> | 2006-10-19 10:45:19 -0400 |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2006-10-19 10:45:19 -0400 |
commit | f7a5289e318e3802737a2629c7fe2ed24dbfc5b9 (patch) | |
tree | 200ff8466c8dd3da1cec87f51689eaea6651b50e /Source/cmCTest.h | |
parent | 2fd1b374c17f4da904a0f3e62802a352f8ab6c72 (diff) | |
download | cmake-f7a5289e318e3802737a2629c7fe2ed24dbfc5b9.tar.gz |
ENH: added total time limit for a CTest run bug 1207
Diffstat (limited to 'Source/cmCTest.h')
-rw-r--r-- | Source/cmCTest.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmCTest.h b/Source/cmCTest.h index 962431a545..ca2e1a90bd 100644 --- a/Source/cmCTest.h +++ b/Source/cmCTest.h @@ -137,6 +137,13 @@ public: ///! Get the current time as string std::string CurrentTime(); + /** + * 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(); + ///! Open file in the output directory and set the stream bool OpenOutputFile(const std::string& path, const std::string& name, |