fc223089e1279e6a7fd94425b5196607f247f3f9
[platform/upstream/libwebsockets.git] / win32port / win32helpers / gettimeofday.h
1 #ifndef _GET_TIME_OF_DAY_H\r
2 #define _GET_TIME_OF_DAY_H\r
3 \r
4 #include < time.h >\r
5 #include <windows.h> //I've ommited context line.\r
6 #if defined(_MSC_VER) || defined(_MSC_EXTENSIONS)\r
7   #define DELTA_EPOCH_IN_MICROSECS  11644473600000000Ui64\r
8 #else\r
9   #define DELTA_EPOCH_IN_MICROSECS  11644473600000000ULL\r
10 #endif\r
11  \r
12 struct timezone \r
13 {\r
14   int  tz_minuteswest; /* minutes W of Greenwich */\r
15   int  tz_dsttime;     /* type of dst correction */\r
16 };\r
17  \r
18 int gettimeofday(struct timeval *tv, struct timezone *tz);\r
19 \r
20 \r
21 #endif