diff options
author | Andrey Nazarov <skuller@skuller.net> | 2008-02-17 22:53:39 +0000 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2008-02-17 22:53:39 +0000 |
commit | 4034314816f7ec9e26c9b9bfc2630c8ca0a24874 (patch) | |
tree | d48be98832d2d9cb977540541fae1acb1859142b /source/sys_win.c | |
parent | a5afaf65af8ef50d1ce8bbd9e2133239013c26f7 (diff) |
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.
Diffstat (limited to 'source/sys_win.c')
-rw-r--r-- | source/sys_win.c | 22 |
1 files changed, 1 insertions, 21 deletions
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(); } |