summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmProcess.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-12-08 13:22:15 (GMT)
committerBrad King <brad.king@kitware.com>2017-12-08 16:09:49 (GMT)
commit548e8f6ffedb57fcdee56633ba454ae0ddf38983 (patch)
tree31e77da99bac6397669e597739d7de8d5197d61f /Source/CTest/cmProcess.h
parentde0035fdcccb4c8acc92bf1db0a76b3c1f18003f (diff)
downloadCMake-548e8f6ffedb57fcdee56633ba454ae0ddf38983.zip
CMake-548e8f6ffedb57fcdee56633ba454ae0ddf38983.tar.gz
CMake-548e8f6ffedb57fcdee56633ba454ae0ddf38983.tar.bz2
CTest: Simplify std::chrono::duration<double> conversion to double
The ratio of ticks to seconds for this type is 1, so we can just use its `count()` directly. This also avoids converting through the integer representation of `std::chrono::milliseconds`, which has a much smaller allowed range. Drop our `cmsysProcess_SetTimeout` wrapper as it is now very thin.
Diffstat (limited to 'Source/CTest/cmProcess.h')
-rw-r--r--Source/CTest/cmProcess.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/Source/CTest/cmProcess.h b/Source/CTest/cmProcess.h
index cbb611d..f3b0bd7 100644
--- a/Source/CTest/cmProcess.h
+++ b/Source/CTest/cmProcess.h
@@ -10,13 +10,6 @@
#include <string>
#include <vector>
-/*
- * A wrapper function for cmsysProcess_SetTimeout that takes an
- * std::chrono::duration. For convenience only.
- */
-void cmsysProcess_SetTimeout(cmsysProcess* process,
- std::chrono::duration<double> timeout);
-
/** \class cmProcess
* \brief run a process with c++
*