view osdep/gettimeofday.c @ 15508:a8b8aac04c9e

The Quicktime headers have changed slightly from 10.3.x to 10.4. Steven Schultz <sms@2BSD.COM>
author nplourde
date Wed, 18 May 2005 14:44:56 +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