From: Vijay Kiran Kamuju <infyquest(a)gmail.com> Signed-Off: Vijay Kiran Kamuju (infyquest(a)gmail.com) --- dlls/vcomp/main.c | 9 +++++++++ dlls/vcomp/vcomp.spec | 2 +- dlls/vcomp100/vcomp100.spec | 2 +- dlls/vcomp110/vcomp110.spec | 2 +- dlls/vcomp120/vcomp120.spec | 2 +- dlls/vcomp140/vcomp140.spec | 2 +- dlls/vcomp90/vcomp90.spec | 2 +- 7 files changed, 15 insertions(+), 6 deletions(-) diff --git a/dlls/vcomp/main.c b/dlls/vcomp/main.c index 3bd48af077b..6a12da8d458 100644 --- a/dlls/vcomp/main.c +++ b/dlls/vcomp/main.c @@ -880,6 +880,15 @@ double CDECL omp_get_wtime(void) return GetTickCount() / 1000.0; } +double CDECL omp_get_wtick(void) +{ + DWORD adjust, increment; + BOOL disable; + if (GetSystemTimeAdjustment(&adjust, &increment, &disable)) + return (double)increment / 10000000.0; + return 1 / 1000.0; +} + void CDECL omp_set_dynamic(int val) { TRACE("(%d): stub\n", val); diff --git a/dlls/vcomp/vcomp.spec b/dlls/vcomp/vcomp.spec index fb67146e058..1a981a6c6c1 100644 --- a/dlls/vcomp/vcomp.spec +++ b/dlls/vcomp/vcomp.spec @@ -96,7 +96,7 @@ @ cdecl omp_get_num_procs() @ cdecl omp_get_num_threads() @ cdecl omp_get_thread_num() -@ stub omp_get_wtick +@ cdecl omp_get_wtick() @ cdecl omp_get_wtime() @ cdecl omp_in_parallel() @ cdecl omp_init_lock(ptr) diff --git a/dlls/vcomp100/vcomp100.spec b/dlls/vcomp100/vcomp100.spec index fb67146e058..1a981a6c6c1 100644 --- a/dlls/vcomp100/vcomp100.spec +++ b/dlls/vcomp100/vcomp100.spec @@ -96,7 +96,7 @@ @ cdecl omp_get_num_procs() @ cdecl omp_get_num_threads() @ cdecl omp_get_thread_num() -@ stub omp_get_wtick +@ cdecl omp_get_wtick() @ cdecl omp_get_wtime() @ cdecl omp_in_parallel() @ cdecl omp_init_lock(ptr) diff --git a/dlls/vcomp110/vcomp110.spec b/dlls/vcomp110/vcomp110.spec index e1cb8ab9931..d39aeb1f347 100644 --- a/dlls/vcomp110/vcomp110.spec +++ b/dlls/vcomp110/vcomp110.spec @@ -97,7 +97,7 @@ @ cdecl omp_get_num_procs() @ cdecl omp_get_num_threads() @ cdecl omp_get_thread_num() -@ stub omp_get_wtick +@ cdecl omp_get_wtick() @ cdecl omp_get_wtime() @ cdecl omp_in_parallel() @ cdecl omp_init_lock(ptr) diff --git a/dlls/vcomp120/vcomp120.spec b/dlls/vcomp120/vcomp120.spec index e1cb8ab9931..d39aeb1f347 100644 --- a/dlls/vcomp120/vcomp120.spec +++ b/dlls/vcomp120/vcomp120.spec @@ -97,7 +97,7 @@ @ cdecl omp_get_num_procs() @ cdecl omp_get_num_threads() @ cdecl omp_get_thread_num() -@ stub omp_get_wtick +@ cdecl omp_get_wtick() @ cdecl omp_get_wtime() @ cdecl omp_in_parallel() @ cdecl omp_init_lock(ptr) diff --git a/dlls/vcomp140/vcomp140.spec b/dlls/vcomp140/vcomp140.spec index e1cb8ab9931..d39aeb1f347 100644 --- a/dlls/vcomp140/vcomp140.spec +++ b/dlls/vcomp140/vcomp140.spec @@ -97,7 +97,7 @@ @ cdecl omp_get_num_procs() @ cdecl omp_get_num_threads() @ cdecl omp_get_thread_num() -@ stub omp_get_wtick +@ cdecl omp_get_wtick() @ cdecl omp_get_wtime() @ cdecl omp_in_parallel() @ cdecl omp_init_lock(ptr) diff --git a/dlls/vcomp90/vcomp90.spec b/dlls/vcomp90/vcomp90.spec index 9fac400ea0e..a751e0b3da4 100644 --- a/dlls/vcomp90/vcomp90.spec +++ b/dlls/vcomp90/vcomp90.spec @@ -96,7 +96,7 @@ @ cdecl omp_get_num_procs() vcomp.omp_get_num_procs @ cdecl omp_get_num_threads() vcomp.omp_get_num_threads @ cdecl omp_get_thread_num() vcomp.omp_get_thread_num -@ stub omp_get_wtick +@ cdecl omp_get_wtick() vcomp.omp_get_wtick @ cdecl omp_get_wtime() vcomp.omp_get_wtime @ cdecl omp_in_parallel() vcomp.omp_in_parallel @ cdecl omp_init_lock(ptr) vcomp.omp_init_lock -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/9482