From 4034314816f7ec9e26c9b9bfc2630c8ca0a24874 Mon Sep 17 00:00:00 2001 From: Andrey Nazarov Date: Sun, 17 Feb 2008 22:53:39 +0000 Subject: Huge search and replace commit. Use fixed size integer types from stdint.h instead of custom defined ones. Get endianess infromation form endian.h. Added `remotemode' console command. Link with -ldl only on Linux. --- source/sys_win.c | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) (limited to 'source/sys_win.c') diff --git a/source/sys_win.c b/source/sys_win.c index f225ef1..d65f3b0 100644 --- a/source/sys_win.c +++ b/source/sys_win.c @@ -634,27 +634,7 @@ static inline time_t Sys_FileTimeToUnixTime( FILETIME *f ) { return ( time_t )( ( u.QuadPart - 116444736000000000U ) / 10000000 ); } -/* -================ -Sys_Milliseconds -================ -*/ -int Sys_Milliseconds( void ) { - static uint32 base; - static qboolean initialized = qfalse; - int curtime; - - if( !initialized ) { - // let base retain 16 bits of effectively random data - base = timeGetTime() & 0xffff0000; - initialized = qtrue; - } - curtime = timeGetTime() - base; - - return curtime; -} - -uint32 Sys_Realtime( void ) { +unsigned Sys_Milliseconds( void ) { return timeGetTime(); } -- cgit v1.2.3