diff options
| -rw-r--r-- | libcxx/src/chrono.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libcxx/src/chrono.cpp b/libcxx/src/chrono.cpp index 1758e6ca2f3..c1eb67b61d7 100644 --- a/libcxx/src/chrono.cpp +++ b/libcxx/src/chrono.cpp @@ -195,7 +195,8 @@ steady_clock::now() _NOEXCEPT { static const LARGE_INTEGER freq = __QueryPerformanceFrequency(); - LARGE_INTEGER counter = __QueryPerformanceFrequency(); + LARGE_INTEGER counter; + (void) QueryPerformanceCounter(&counter); return time_point(duration(counter.QuadPart * nano::den / freq.QuadPart)); } |

