mirror of https://github.com/mpv-player/mpv
osdep: Remove cruft
Delete some commented out or otherwise unused lines.
This commit is contained in:
parent
eaf7857b7f
commit
f800a42e45
|
@ -31,32 +31,17 @@ int usec_sleep(int usec_delay)
|
|||
// Returns current time in microseconds
|
||||
unsigned int GetTimer(void){
|
||||
struct timeval tv;
|
||||
// float s;
|
||||
gettimeofday(&tv,NULL);
|
||||
// s=tv.tv_usec;s*=0.000001;s+=tv.tv_sec;
|
||||
return (tv.tv_sec*1000000+tv.tv_usec);
|
||||
}
|
||||
|
||||
// Returns current time in milliseconds
|
||||
unsigned int GetTimerMS(void){
|
||||
struct timeval tv;
|
||||
// float s;
|
||||
gettimeofday(&tv,NULL);
|
||||
// s=tv.tv_usec;s*=0.000001;s+=tv.tv_sec;
|
||||
return (tv.tv_sec*1000+tv.tv_usec/1000);
|
||||
}
|
||||
|
||||
// Initialize timer, must be called at least once at start
|
||||
void InitTimer(void){
|
||||
}
|
||||
|
||||
|
||||
#if 0
|
||||
#include <stdio.h>
|
||||
int main(void){
|
||||
float t=0;
|
||||
InitTimer();
|
||||
while(1){ t+=GetRelativeTime();printf("time= %10.6f\r",t);fflush(stdout); }
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
@ -6,13 +6,7 @@ extern const char timer_name[];
|
|||
void InitTimer(void);
|
||||
unsigned int GetTimer(void);
|
||||
unsigned int GetTimerMS(void);
|
||||
//int uGetTimer();
|
||||
|
||||
int usec_sleep(int usec_delay);
|
||||
|
||||
/* timer's callback handling */
|
||||
typedef void timer_callback( void );
|
||||
extern unsigned set_timer_callback(unsigned ms,timer_callback func);
|
||||
extern void restore_timer(void);
|
||||
|
||||
#endif /* MPLAYER_TIMER_H */
|
||||
|
|
Loading…
Reference in New Issue