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_encraw.c,v 1.1.2.3 2003-01-19 15:10:11 edgomez Exp $ |
* $Id: xvid_encraw.c,v 1.1.2.4 2003-02-09 06:46:54 suxen_drol Exp $ |
23 |
* |
* |
24 |
****************************************************************************/ |
****************************************************************************/ |
25 |
|
|
38 |
#include <stdlib.h> |
#include <stdlib.h> |
39 |
#include <string.h> |
#include <string.h> |
40 |
#include <math.h> |
#include <math.h> |
41 |
#ifndef _MSC_VER |
#ifndef WIN32 |
42 |
#include <sys/time.h> |
#include <sys/time.h> |
43 |
#else |
#else |
44 |
#include <time.h> |
#include <time.h> |
526 |
/* Return time elapsed time in miliseconds since the program started */ |
/* Return time elapsed time in miliseconds since the program started */ |
527 |
static double msecond() |
static double msecond() |
528 |
{ |
{ |
529 |
#ifndef _MSC_VER |
#ifndef WIN32 |
530 |
struct timeval tv; |
struct timeval tv; |
531 |
gettimeofday(&tv, 0); |
gettimeofday(&tv, 0); |
532 |
return tv.tv_sec*1.0e3 + tv.tv_usec * 1.0e-3; |
return tv.tv_sec*1.0e3 + tv.tv_usec * 1.0e-3; |