glib/gthread.c (gettime) GetSystemTimeAsFileTime() returns 100s of

2007-01-16  Tor Lillqvist  <tml@novell.com>

	* glib/gthread.c (gettime)
	* gthread-win32.c (g_gettime_win32_impl):
	GetSystemTimeAsFileTime() returns 100s of nanoseconds, so multiply
	by 100 to get nanoseconds which is what we want.


svn path=/trunk/; revision=5276
This commit is contained in:
Tor Lillqvist 2007-01-16 10:45:58 +00:00 committed by Tor Lillqvist
parent 5172929d0c
commit 5d65767801
4 changed files with 14 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2007-01-16 Tor Lillqvist <tml@novell.com>
* glib/gthread.c (gettime): GetSystemTimeAsFileTime() returns 100s
of nanoseconds, so multiply by 100 to get nanoseconds which is
what we want.
2007-01-15 Tor Lillqvist <tml@novell.com>
* glib/gmain.h (struct _GPollFD): Fix mistake in my last commit.

View File

@ -555,6 +555,7 @@ gettime (void)
guint64 v;
GetSystemTimeAsFileTime ((FILETIME *)&v);
v *= 100;
return v;
#else

View File

@ -1,3 +1,9 @@
2007-01-16 Tor Lillqvist <tml@novell.com>
* gthread-win32.c (g_gettime_win32_impl):
GetSystemTimeAsFileTime() returns 100s of nanoseconds, so multiply
by 100 to get nanoseconds which is what we want.
2006-12-28 Tor Lillqvist <tml@novell.com>
* gthread-win32.c (g_thread_impl_init): Correct link to discussion

View File

@ -551,6 +551,7 @@ g_gettime_win32_impl (void)
guint64 v;
GetSystemTimeAsFileTime ((FILETIME *)&v);
v *= 100;
return v;
}