19 |
* along with this program; if not, write to the Free Software |
* along with this program; if not, write to the Free Software |
20 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
21 |
* |
* |
22 |
* $Id: xvid_decraw.c,v 1.4 2002-09-28 14:27:16 edgomez Exp $ |
* $Id: xvid_decraw.c,v 1.5 2003-02-09 19:32:52 edgomez Exp $ |
23 |
* |
* |
24 |
****************************************************************************/ |
****************************************************************************/ |
25 |
|
|
56 |
#include <stdlib.h> |
#include <stdlib.h> |
57 |
#include <string.h> |
#include <string.h> |
58 |
#include <math.h> |
#include <math.h> |
59 |
#ifndef _MSC_VER |
#ifndef WIN32 |
60 |
#include <sys/time.h> |
#include <sys/time.h> |
61 |
#else |
#else |
62 |
#include <time.h> |
#include <time.h> |
431 |
static double |
static double |
432 |
msecond() |
msecond() |
433 |
{ |
{ |
434 |
#ifndef _MSC_VER |
#ifndef WIN32 |
435 |
struct timeval tv; |
struct timeval tv; |
436 |
gettimeofday(&tv, 0); |
gettimeofday(&tv, 0); |
437 |
return (double)tv.tv_sec*1.0e3 + (double)tv.tv_usec*1.0e-3; |
return (double)tv.tv_sec*1.0e3 + (double)tv.tv_usec*1.0e-3; |