blob: fb31f12efede5ac75242160173779598c64d2236 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
/* replacement function of gettimeofday */
#include "config.h"
#include <sys/timeb.h>
#ifdef WIN32
#include <winsock.h>
#else
#include <sys/time.h>
#endif
int _xine_private_gettimeofday(struct timeval *tv) {
struct timeb tp;
ftime(&tp);
tv->tv_sec = tp.time;
tv->tv_usec = tp.millitm * 1000;
return 0;
}
|