xref: /third_party/libwebsockets/win32port/win32helpers/gettimeofday.h
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/libwebsockets/win32port/win32helpers/
1d4afb5ceSopenharmony_ci#ifndef _GET_TIME_OF_DAY_H
2d4afb5ceSopenharmony_ci#define _GET_TIME_OF_DAY_H
3d4afb5ceSopenharmony_ci
4d4afb5ceSopenharmony_ci#include <time.h>
5d4afb5ceSopenharmony_ci
6d4afb5ceSopenharmony_ci#if defined(_MSC_VER) || defined(_MSC_EXTENSIONS)
7d4afb5ceSopenharmony_ci  #define DELTA_EPOCH_IN_MICROSECS  11644473600000000Ui64
8d4afb5ceSopenharmony_ci#else
9d4afb5ceSopenharmony_ci  #define DELTA_EPOCH_IN_MICROSECS  11644473600000000ULL
10d4afb5ceSopenharmony_ci#endif
11d4afb5ceSopenharmony_ci
12d4afb5ceSopenharmony_ci#ifdef LWS_MINGW_SUPPORT
13d4afb5ceSopenharmony_ci  #include <sys/time.h>
14d4afb5ceSopenharmony_ci#endif
15d4afb5ceSopenharmony_ci
16d4afb5ceSopenharmony_ci#ifndef _TIMEZONE_DEFINED
17d4afb5ceSopenharmony_cistruct timezone
18d4afb5ceSopenharmony_ci{
19d4afb5ceSopenharmony_ci  int  tz_minuteswest; /* minutes W of Greenwich */
20d4afb5ceSopenharmony_ci  int  tz_dsttime;     /* type of dst correction */
21d4afb5ceSopenharmony_ci};
22d4afb5ceSopenharmony_ci
23d4afb5ceSopenharmony_ci#endif
24d4afb5ceSopenharmony_ci
25d4afb5ceSopenharmony_ci#ifndef LWS_MINGW_SUPPORT
26d4afb5ceSopenharmony_ciint gettimeofday(struct timeval *tv, struct timezone *tz);
27d4afb5ceSopenharmony_ci#endif
28d4afb5ceSopenharmony_ci
29d4afb5ceSopenharmony_ci#endif
30

Indexes created Thu Nov 07 10:32:03 CST 2024