2014-02-15 13:37:08 +08:00
|
|
|
#ifndef _GET_TIME_OF_DAY_H
|
|
|
|
#define _GET_TIME_OF_DAY_H
|
|
|
|
|
2016-11-07 21:36:05 +01:00
|
|
|
#include <time.h>
|
|
|
|
|
2014-02-15 13:37:08 +08:00
|
|
|
#if defined(_MSC_VER) || defined(_MSC_EXTENSIONS)
|
|
|
|
#define DELTA_EPOCH_IN_MICROSECS 11644473600000000Ui64
|
|
|
|
#else
|
|
|
|
#define DELTA_EPOCH_IN_MICROSECS 11644473600000000ULL
|
|
|
|
#endif
|
|
|
|
|
2016-04-26 22:28:08 +02:00
|
|
|
#ifdef LWS_MINGW_SUPPORT
|
|
|
|
#include <winsock2.h>
|
|
|
|
#endif
|
2016-04-26 22:05:19 +02:00
|
|
|
|
2014-02-15 13:37:08 +08:00
|
|
|
#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);
|
2014-02-15 13:37:08 +08:00
|
|
|
|
2015-10-01 12:25:05 +03:00
|
|
|
#endif
|