From 198a10ed1bc74742df5568c46622c19b7baccf0c Mon Sep 17 00:00:00 2001 From: Hartmut Birr Date: Wed, 9 Jul 2003 20:19:50 +0000 Subject: [PATCH] - GetTickCount should return the elapsed time since booting in milliseconds and not the tick count. svn path=/trunk/; revision=5027 --- reactos/lib/kernel32/misc/time.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/reactos/lib/kernel32/misc/time.c b/reactos/lib/kernel32/misc/time.c index f6ee1290cef..26c85b2c5bd 100644 --- a/reactos/lib/kernel32/misc/time.c +++ b/reactos/lib/kernel32/misc/time.c @@ -1,4 +1,4 @@ -/* $Id: time.c,v 1.20 2003/02/12 00:39:31 hyperion Exp $ +/* $Id: time.c,v 1.21 2003/07/09 20:19:50 hbirr Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS system libraries @@ -334,9 +334,7 @@ GetCurrentTime(VOID) DWORD STDCALL GetTickCount(VOID) { - ULONG UpTime; - NtGetTickCount(&UpTime); - return UpTime; + return (DWORD)((ULONGLONG)SharedUserData->TickCountLow * SharedUserData->TickCountMultiplier / 16777216); }