summaryrefslogtreecommitdiffstats
path: root/osdep/timer-linux.c
diff options
context:
space:
mode:
authorUoti Urpala <uau@symbol.nonexistent.invalid>2008-04-28 12:12:56 +0300
committerUoti Urpala <uau@symbol.nonexistent.invalid>2008-04-28 12:18:48 +0300
commitf800a42e45fe47fa9c5ad51094adebb5ea662a0d (patch)
tree72be9175dc00c07971881ff356d9796029e8cf83 /osdep/timer-linux.c
parenteaf7857b7f7ae6b05ce9d129157e0ff33ed2081b (diff)
downloadmpv-f800a42e45fe47fa9c5ad51094adebb5ea662a0d.tar.bz2
mpv-f800a42e45fe47fa9c5ad51094adebb5ea662a0d.tar.xz
osdep: Remove cruft
Delete some commented out or otherwise unused lines.
Diffstat (limited to 'osdep/timer-linux.c')
-rw-r--r--osdep/timer-linux.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/osdep/timer-linux.c b/osdep/timer-linux.c
index efcc612627..f32f92f392 100644
--- a/osdep/timer-linux.c
+++ b/osdep/timer-linux.c
@@ -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
-