aboutsummaryrefslogtreecommitdiffhomepage
path: root/osdep/gettimeofday.c
blob: 35797798125bef387f0900b1ea2a562cf23877bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#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