view osdep/gettimeofday.c @ 14257:a99ccb34a59c

sync to x264 r72. new options: b8x8mv, direct_pred changed defaults: pb_factor=1.3, subq=3
author lorenm
date Tue, 28 Dec 2004 01:02:08 +0000
parents 5c639ec8c39e
children 08cac43f1e38
line wrap: on
line source

#include "../config.h"

#ifndef HAVE_GETTIMEOFDAY
#include <sys/time.h>
#include <sys/timeb.h>
void gettimeofday(struct timeval* t,void* timezone)
{       struct timeb timebuffer;
        ftime( &timebuffer );
        t->tv_sec=timebuffer.time;
        t->tv_usec=1000*timebuffer.millitm;
}
#endif