removed redundancy...

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@100 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi_esp 2001-03-13 00:13:18 +00:00
parent b6b169b6f2
commit dc17b69e6d
2 changed files with 2 additions and 10 deletions

View File

@ -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

View File

@ -1,6 +1,6 @@
void InitTimer();
int GetTimer();
unsigned int GetTimer();
//int uGetTimer();
float GetRelativeTime();