We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5b146b commit 86c643dCopy full SHA for 86c643d
stdlib/public/Concurrency/Clock.cpp
@@ -147,10 +147,8 @@ switch (clock_id) {
147
#elif (defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__wasi__))
148
clock_getres(CLOCK_MONOTONIC, &continuous);
149
#elif defined(_WIN32)
150
- LARGE_INTEGER freq;
151
- QueryPerformanceFrequency(&freq);
152
continuous.tv_sec = 0;
153
- continuous.tv_nsec = 1'000'000'000 / freq.QuadPart;
+ continuous.tv_nsec = 100;
154
#else
155
#error Missing platform continuous time definition
156
#endif
0 commit comments