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:
parent
8f8626feef
commit
1026e85d9f
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue