# HG changeset patch # User rfelker # Date 1147499800 0 # Node ID 1f956f8f881e0958ff142e198f6aa1f375052784 # Parent 028e4c7a749e2ef8ab924ab17d701cb2eccf039f remove useless cruft (caused error tz undefined) diff -r 028e4c7a749e -r 1f956f8f881e osdep/timer-lx.c --- 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); }