blob: 2d8baa6e90617a8f5fc035f50033f27b6f92fab5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#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
|