Mercurial > mplayer.hg
changeset 18467:1f956f8f881e
remove useless cruft (caused error tz undefined)
author | rfelker |
---|---|
date | Sat, 13 May 2006 05:56:40 +0000 |
parents | 028e4c7a749e |
children | 3a624063cbc9 |
files | osdep/timer-lx.c |
diffstat | 1 files changed, 2 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/osdep/timer-lx.c Sat May 13 05:51:35 2006 +0000 +++ b/osdep/timer-lx.c Sat May 13 05:56:40 2006 +0000 @@ -31,9 +31,8 @@ // Returns current time in microseconds unsigned int GetTimer(void){ struct timeval tv; - struct timezone tz; // float s; - gettimeofday(&tv,&tz); + gettimeofday(&tv,NULL); // s=tv.tv_usec;s*=0.000001;s+=tv.tv_sec; return (tv.tv_sec*1000000+tv.tv_usec); } @@ -41,9 +40,8 @@ // Returns current time in milliseconds unsigned int GetTimerMS(void){ struct timeval tv; - struct timezone tz; // float s; - gettimeofday(&tv,&tz); + gettimeofday(&tv,NULL); // s=tv.tv_usec;s*=0.000001;s+=tv.tv_sec; return (tv.tv_sec*1000+tv.tv_usec/1000); }