Commit 1026e85d authored by Daniel Lehman's avatar Daniel Lehman Committed by Alexandre Julliard

msvcp140: Add _Query_perf_[counter|frequency].

parent 8f8626fe
...@@ -3690,8 +3690,8 @@ ...@@ -3690,8 +3690,8 @@
@ stub _Mtxunlock @ stub _Mtxunlock
@ extern _Nan _Nan @ extern _Nan _Nan
@ stub _Open_dir @ stub _Open_dir
@ stub _Query_perf_counter @ cdecl -ret64 _Query_perf_counter()
@ stub _Query_perf_frequency @ cdecl -ret64 _Query_perf_frequency()
@ stub _Read_dir @ stub _Read_dir
@ stub _Remove_dir @ stub _Remove_dir
@ stub _Rename @ stub _Rename
......
...@@ -1180,3 +1180,19 @@ void free_misc(void) ...@@ -1180,3 +1180,19 @@ void free_misc(void)
NtClose(keyed_event); NtClose(keyed_event);
#endif #endif
} }
#if _MSVCP_VER >= 140
LONGLONG __cdecl _Query_perf_counter(void)
{
LARGE_INTEGER li;
QueryPerformanceCounter(&li);
return li.QuadPart;
}
LONGLONG __cdecl _Query_perf_frequency(void)
{
LARGE_INTEGER li;
QueryPerformanceFrequency(&li);
return li.QuadPart;
}
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment