diff options
author | Tor Lillqvist <tml@novell.com> | 2007-01-16 10:45:58 +0000 |
---|---|---|
committer | Tor Lillqvist <tml@src.gnome.org> | 2007-01-16 10:45:58 +0000 |
commit | 5d65767801a6effa3c6da9d4cedb4cffed794b1f (patch) | |
tree | ecfbd6541b8bb3e1fa851129a4d677526608d1b1 /gthread/gthread-win32.c | |
parent | 5172929d0ccb20c99e06009bdbd323fb0bf7ea77 (diff) |
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
Diffstat (limited to 'gthread/gthread-win32.c')
-rw-r--r-- | gthread/gthread-win32.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gthread/gthread-win32.c b/gthread/gthread-win32.c index 23c7bfd4d..d55e265bb 100644 --- a/gthread/gthread-win32.c +++ b/gthread/gthread-win32.c @@ -551,6 +551,7 @@ g_gettime_win32_impl (void) guint64 v; GetSystemTimeAsFileTime ((FILETIME *)&v); + v *= 100; return v; } |