summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--linux/timer-lx.c10
-rw-r--r--linux/timer.h2
2 files changed, 2 insertions, 10 deletions
diff --git a/linux/timer-lx.c b/linux/timer-lx.c
index 0460aaa024..fd251e9251 100644
--- a/linux/timer-lx.c
+++ b/linux/timer-lx.c
@@ -3,7 +3,7 @@
#include <unistd.h>
#include <sys/time.h>
-// Returns current time in seconds
+// Returns current time in microseconds
unsigned int GetTimer(){
struct timeval tv;
struct timezone tz;
@@ -13,14 +13,6 @@ unsigned int GetTimer(){
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 --git a/linux/timer.h b/linux/timer.h
index 8348a6cf7b..6274f6883b 100644
--- a/linux/timer.h
+++ b/linux/timer.h
@@ -1,6 +1,6 @@
void InitTimer();
-int GetTimer();
+unsigned int GetTimer();
//int uGetTimer();
float GetRelativeTime();