Dan Kegel : vcomp: Implement omp_get_wtime.

Alexandre Julliard julliard at winehq.org
Wed Sep 5 15:36:46 CDT 2012


Module: wine
Branch: master
Commit: 5c988477d47a81dc525747319253f97ac3d971d5
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=5c988477d47a81dc525747319253f97ac3d971d5

Author: Dan Kegel <dank at kegel.com>
Date:   Mon Sep  3 21:12:15 2012 -0700

vcomp: Implement omp_get_wtime.

---

 dlls/vcomp/main.c     |    6 ++++++
 dlls/vcomp/vcomp.spec |    2 +-
 2 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/dlls/vcomp/main.c b/dlls/vcomp/main.c
index 0a3c4f5..be14c02 100644
--- a/dlls/vcomp/main.c
+++ b/dlls/vcomp/main.c
@@ -29,6 +29,12 @@
 
 WINE_DEFAULT_DEBUG_CHANNEL(vcomp);
 
+/* Time in seconds since "some time in the past" */
+double CDECL omp_get_wtime(void)
+{
+    return GetTickCount() / 1000.0;
+}
+
 BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
 {
     TRACE("(0x%p, %d, %p)\n", hinstDLL, fdwReason, lpvReserved);
diff --git a/dlls/vcomp/vcomp.spec b/dlls/vcomp/vcomp.spec
index cd5a964..7ffbf82 100644
--- a/dlls/vcomp/vcomp.spec
+++ b/dlls/vcomp/vcomp.spec
@@ -97,7 +97,7 @@
 @ stub omp_get_num_threads
 @ stub omp_get_thread_num
 @ stub omp_get_wtick
-@ stub omp_get_wtime
+@ cdecl omp_get_wtime()
 @ stub omp_in_parallel
 @ stub omp_init_lock
 @ stub omp_init_nest_lock




More information about the wine-cvs mailing list