mldonkey-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Mldonkey-commits] Changes to mldonkey/src/config/mingw/os_stubs_c.c


From: mldonkey-commits
Subject: [Mldonkey-commits] Changes to mldonkey/src/config/mingw/os_stubs_c.c
Date: Sun, 28 Aug 2005 06:49:50 -0400

Index: mldonkey/src/config/mingw/os_stubs_c.c
diff -u mldonkey/src/config/mingw/os_stubs_c.c:1.7 
mldonkey/src/config/mingw/os_stubs_c.c:1.8
--- mldonkey/src/config/mingw/os_stubs_c.c:1.7  Sun Aug 28 10:47:39 2005
+++ mldonkey/src/config/mingw/os_stubs_c.c      Sun Aug 28 10:49:49 2005
@@ -122,3 +122,18 @@
     }
   }
 }
+
+
+//http://lists.gnu.org/archive/html/bug-gnu-chess/2004-01/msg00020.html
+void gettimeofday(struct timeval* p, void* tz /* IGNORED */){
+   union {
+     long long ns100; /*time since 1 Jan 1601 in 100ns units */
+     FILETIME ft;
+   } _now;
+
+   GetSystemTimeAsFileTime( &(_now.ft) );
+   p->tv_usec=(long)((_now.ns100 / 10LL) % 1000000LL );
+   p->tv_sec= (long)((_now.ns100-(116444736000000000LL))/10000000LL);
+   return;
+}
+




reply via email to

[Prev in Thread] Current Thread [Next in Thread]