summaryrefslogtreecommitdiffstats
path: root/Source/cmSystemTools.h
diff options
context:
space:
mode:
authorWouter Klouwen <wouter.klouwen@youview.com>2018-01-20 15:13:21 (GMT)
committerWouter Klouwen <wouter.klouwen@youview.com>2018-01-23 18:56:42 (GMT)
commite6a80ccfc440ac8dd5e9e5405744c2423560fc02 (patch)
tree22b68d9379421a8a84ff5dab35e9689654334b04 /Source/cmSystemTools.h
parentff62b00522d1ddaeb88be241ab4a022f935b5c00 (diff)
downloadCMake-e6a80ccfc440ac8dd5e9e5405744c2423560fc02.zip
CMake-e6a80ccfc440ac8dd5e9e5405744c2423560fc02.tar.gz
CMake-e6a80ccfc440ac8dd5e9e5405744c2423560fc02.tar.bz2
Make use of std::chrono throughout every component
This commit continues the changes made in CTest to support std::chrono by applying it throughout every component where a duration was used. No functional change intended.
Diffstat (limited to 'Source/cmSystemTools.h')
-rw-r--r--Source/cmSystemTools.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/cmSystemTools.h b/Source/cmSystemTools.h
index d29ba56..77e34b4 100644
--- a/Source/cmSystemTools.h
+++ b/Source/cmSystemTools.h
@@ -6,6 +6,7 @@
#include "cmConfigure.h" // IWYU pragma: keep
#include "cmCryptoHash.h"
+#include "cmDuration.h"
#include "cmProcessOutput.h"
#include "cmsys/Process.h"
#include "cmsys/SystemTools.hxx" // IWYU pragma: export
@@ -225,7 +226,7 @@ public:
int* retVal = nullptr,
const char* dir = nullptr,
OutputOption outputflag = OUTPUT_MERGE,
- double timeout = 0.0);
+ cmDuration timeout = cmDuration::zero());
/**
* In this version of RunSingleCommand, command[0] should be
* the command to run, and each argument to the command should
@@ -237,7 +238,7 @@ public:
int* retVal = nullptr,
const char* dir = nullptr,
OutputOption outputflag = OUTPUT_MERGE,
- double timeout = 0.0,
+ cmDuration timeout = cmDuration::zero(),
Encoding encoding = cmProcessOutput::Auto);
static std::string PrintSingleCommand(std::vector<std::string> const&);
@@ -343,7 +344,7 @@ public:
/** a general output handler for cmsysProcess */
static int WaitForLine(cmsysProcess* process, std::string& line,
- double timeout, std::vector<char>& out,
+ cmDuration timeout, std::vector<char>& out,
std::vector<char>& err);
/** Split a string on its newlines into multiple lines. Returns