1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-16 00:00:07 +01:00
libwebsockets/win32port/win32helpers/gettimeofday.h

28 lines
539 B
C
Raw Normal View History

#ifndef _GET_TIME_OF_DAY_H
#define _GET_TIME_OF_DAY_H
2016-11-07 21:36:05 +01:00
#include <time.h>
#if defined(_MSC_VER) || defined(_MSC_EXTENSIONS)
#define DELTA_EPOCH_IN_MICROSECS 11644473600000000Ui64
#else
#define DELTA_EPOCH_IN_MICROSECS 11644473600000000ULL
#endif
#ifdef LWS_MINGW_SUPPORT
#include <winsock2.h>
#endif
#ifndef _TIMEZONE_DEFINED
struct timezone
{
int tz_minuteswest; /* minutes W of Greenwich */
int tz_dsttime; /* type of dst correction */
};
#endif
2016-11-07 21:36:05 +01:00
int gettimeofday(struct timeval *tv, struct timezone *tz);
#endif