Commit b0c63af1 authored by Alexandre Julliard's avatar Alexandre Julliard

kernel: Make GetTickCount call NtGetTickCount.

parent 2333c805
...@@ -59,8 +59,6 @@ static CRITICAL_SECTION_DEBUG critsect_debug = ...@@ -59,8 +59,6 @@ static CRITICAL_SECTION_DEBUG critsect_debug =
}; };
static CRITICAL_SECTION ldt_section = { &critsect_debug, -1, 0, 0, 0, 0 }; static CRITICAL_SECTION ldt_section = { &critsect_debug, -1, 0, 0, 0, 0 };
static DWORD server_start_time;
/*********************************************************************** /***********************************************************************
* locking for LDT routines * locking for LDT routines
*/ */
...@@ -106,10 +104,6 @@ static void thread_detach(void) ...@@ -106,10 +104,6 @@ static void thread_detach(void)
static BOOL process_attach(void) static BOOL process_attach(void)
{ {
SYSTEM_INFO si; SYSTEM_INFO si;
SYSTEM_TIMEOFDAY_INFORMATION sti;
NtQuerySystemInformation( SystemTimeOfDayInformation, &sti, sizeof(sti), NULL );
RtlTimeToSecondsSince1970( &sti.liKeBootTime, &server_start_time );
/* FIXME: should probably be done in ntdll */ /* FIXME: should probably be done in ntdll */
GetSystemInfo( &si ); GetSystemInfo( &si );
...@@ -230,7 +224,5 @@ INT WINAPI MulDiv( INT nMultiplicand, INT nMultiplier, INT nDivisor) ...@@ -230,7 +224,5 @@ INT WINAPI MulDiv( INT nMultiplicand, INT nMultiplier, INT nDivisor)
*/ */
DWORD WINAPI GetTickCount(void) DWORD WINAPI GetTickCount(void)
{ {
struct timeval t; return NtGetTickCount();
gettimeofday( &t, NULL );
return ((t.tv_sec - server_start_time) * 1000) + (t.tv_usec / 1000);
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment