mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
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.
This commit is contained in:
@@ -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++
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user