mirror of
https://github.com/mpv-player/mpv
synced 2025-02-16 20:27:23 +00:00
removed redundancy...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@100 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
b6b169b6f2
commit
dc17b69e6d
@ -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
|
||||
|
@ -1,6 +1,6 @@
|
||||
|
||||
void InitTimer();
|
||||
int GetTimer();
|
||||
unsigned int GetTimer();
|
||||
//int uGetTimer();
|
||||
float GetRelativeTime();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user