summaryrefslogtreecommitdiffstats
path: root/osdep/gettimeofday.c
blob: 74368981215a383cd9a6ea8c2acee80d4fbd7709 (plain)
1
2
3
4
5
6
7
8
9
10
#include "config.h"

#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;
}