We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1dda619 commit 5e9aec6Copy full SHA for 5e9aec6
core/src/walltime.cpp
@@ -8,7 +8,11 @@
8
#include <numeric>
9
#include <sstream>
10
#include <string>
11
-#include <thread>
+#ifdef _WIN32
12
+#include <process.h>
13
+#else
14
+#include <unistd.h>
15
+#endif
16
#include <vector>
17
18
const double IQR_OUTLIER_FACTOR = 1.5;
@@ -105,7 +109,11 @@ void write_codspeed_benchmarks_to_json(
105
109
106
110
std::string creator_name = "codspeed-cpp";
107
111
std::string creator_version = CODSPEED_VERSION;
108
- std::thread::id creator_pid = std::this_thread::get_id();
112
113
+ pid_t creator_pid = _getpid();
114
115
+ pid_t creator_pid = getpid();
116
117
std::string instrument_type = "walltime";
118
119
oss << "{\n";
0 commit comments