msvcp140: Add _Query_perf_[counter|frequency].

Signed-off-by: Daniel Lehman <dlehman@esri.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Daniel Lehman 2016-08-10 10:09:25 +02:00 committed by Alexandre Julliard
parent 8f8626feef
commit 1026e85d9f
2 changed files with 18 additions and 2 deletions

View File

@ -3690,8 +3690,8 @@
@ stub _Mtxunlock
@ extern _Nan _Nan
@ stub _Open_dir
@ stub _Query_perf_counter
@ stub _Query_perf_frequency
@ cdecl -ret64 _Query_perf_counter()
@ cdecl -ret64 _Query_perf_frequency()
@ stub _Read_dir
@ stub _Remove_dir
@ stub _Rename

View File

@ -1180,3 +1180,19 @@ void free_misc(void)
NtClose(keyed_event);
#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