mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-16 00:00:07 +01:00
21 lines
500 B
C
21 lines
500 B
C
![]() |
#ifndef _GET_TIME_OF_DAY_H
|
||
|
#define _GET_TIME_OF_DAY_H
|
||
|
|
||
|
#include < time.h >
|
||
|
#include <windows.h> //I've ommited context line.
|
||
|
#if defined(_MSC_VER) || defined(_MSC_EXTENSIONS)
|
||
|
#define DELTA_EPOCH_IN_MICROSECS 11644473600000000Ui64
|
||
|
#else
|
||
|
#define DELTA_EPOCH_IN_MICROSECS 11644473600000000ULL
|
||
|
#endif
|
||
|
|
||
|
struct timezone
|
||
|
{
|
||
|
int tz_minuteswest; /* minutes W of Greenwich */
|
||
|
int tz_dsttime; /* type of dst correction */
|
||
|
};
|
||
|
|
||
|
int gettimeofday(struct timeval *tv, struct timezone *tz);
|
||
|
|
||
|
|
||
|
#endif
|