mirror of
				https://gitlab.gnome.org/GNOME/glib.git
				synced 2025-10-31 00:12:19 +01:00 
			
		
		
		
	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:
		
				
					committed by
					
						 Tor Lillqvist
						Tor Lillqvist
					
				
			
			
				
	
			
			
			
						parent
						
							5172929d0c
						
					
				
				
					commit
					5d65767801
				
			| @@ -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. | ||||
|   | ||||
| @@ -555,6 +555,7 @@ gettime (void) | ||||
|   guint64 v; | ||||
|  | ||||
|   GetSystemTimeAsFileTime ((FILETIME *)&v); | ||||
|   v *= 100; | ||||
|  | ||||
|   return v; | ||||
| #else | ||||
|   | ||||
| @@ -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 | ||||
|   | ||||
| @@ -551,6 +551,7 @@ g_gettime_win32_impl (void) | ||||
|   guint64 v; | ||||
|  | ||||
|   GetSystemTimeAsFileTime ((FILETIME *)&v); | ||||
|   v *= 100; | ||||
|  | ||||
|   return v; | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user