diff options
author | Andrey Nazarov <skuller@skuller.net> | 2007-12-29 21:49:05 +0000 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2007-12-29 21:49:05 +0000 |
commit | 2974cadbd2e10924a71a632d73c17309dafc8093 (patch) | |
tree | 82d3856bd666986a81a5d828721235c320c344ef /source/sys_unix.c | |
parent | 9c010a12e2cf5bbe62ef00a25aac0f79ee456add (diff) |
Made server ping measurements more accurate.
Diffstat (limited to 'source/sys_unix.c')
-rw-r--r-- | source/sys_unix.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/sys_unix.c b/source/sys_unix.c index 8c10db9..19ee92c 100644 --- a/source/sys_unix.c +++ b/source/sys_unix.c @@ -484,11 +484,10 @@ void Sys_DebugBreak( void ) { Sys_Milliseconds ================ */ -int curtime; - int Sys_Milliseconds( void ) { struct timeval tp; static int secbase; + int curtime; gettimeofday( &tp, NULL ); |