# HG changeset patch # User arpi_esp # Date 984442398 0 # Node ID fb1fc94eaff00f0197bfe1acc6a36a099ac5841c # Parent e4db2cbedf731dfed9076c2c109fe795c90e4e44 removed redundancy... diff -r e4db2cbedf73 -r fb1fc94eaff0 linux/timer-lx.c --- a/linux/timer-lx.c Mon Mar 12 20:07:50 2001 +0000 +++ b/linux/timer-lx.c Tue Mar 13 00:13:18 2001 +0000 @@ -3,7 +3,7 @@ #include #include -// Returns current time in seconds +// Returns current time in microseconds unsigned int GetTimer(){ struct timeval tv; struct timezone tz; @@ -13,14 +13,6 @@ return (tv.tv_sec*1000000+tv.tv_usec); } -// Returns current time in microseconds -int uGetTimer(){ - struct timeval tv; - struct timezone tz; - gettimeofday(&tv,&tz); - return (int)(tv.tv_usec+1000000*tv.tv_sec); -} - static unsigned int RelativeTime=0; // Returns time spent between now and last call in seconds diff -r e4db2cbedf73 -r fb1fc94eaff0 linux/timer.h --- a/linux/timer.h Mon Mar 12 20:07:50 2001 +0000 +++ b/linux/timer.h Tue Mar 13 00:13:18 2001 +0000 @@ -1,6 +1,6 @@ void InitTimer(); -int GetTimer(); +unsigned int GetTimer(); //int uGetTimer(); float GetRelativeTime();