[XviD-devel] bug in 1.1.0 beta1 and beta2

Mark L mark_l512 at yahoo.com
Thu Apr 14 17:56:12 CEST 2005


  There is a bug in the benchmarking code for Windows.
 It uses the clock() procedure and assumes that it
returns times in the Microsecond range.  However it
returns times in the Millisecond range.  You either
need to fix it up to return Milliseconds or use a
different procedure that returns time in the
Microsecond range ( such as QueryPerforamnceCounter())

this is the routine from xvid_bench.c that I am
talking about.

/* returns time in micro-s*/
double gettime_usec()
{    
#ifndef WIN32
	struct timeval  tv;
	gettimeofday(&tv, 0);
	return tv.tv_sec*1.0e6 + tv.tv_usec;
#else
	clock_t clk;
	clk = clock();
	return clk * 1000000 / CLOCKS_PER_SEC;
#endif
}


		
__________________________________ 
Do you Yahoo!? 
Make Yahoo! your home page 
http://www.yahoo.com/r/hs


More information about the XviD-devel mailing list