2009-02-27 09:24:25 -05:00
|
|
|
/*
|
|
|
|
* timeval.h 1.0 01/12/19
|
|
|
|
*
|
|
|
|
* Defines gettimeofday, timeval, etc. for Win32
|
|
|
|
*
|
|
|
|
* By Wu Yongwei
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
#ifndef _TIMEVAL_H
|
|
|
|
#define _TIMEVAL_H
|
|
|
|
|
2009-06-03 05:25:21 -04:00
|
|
|
#include <winsock2.h>
|
|
|
|
|
2009-02-27 09:24:25 -05:00
|
|
|
#define EPOCHFILETIME (116444736000000000LL)
|
|
|
|
|
2009-06-03 05:25:21 -04:00
|
|
|
#if defined(__cplusplus)
|
|
|
|
extern "C"
|
|
|
|
{
|
|
|
|
#endif
|
2009-02-27 09:24:25 -05:00
|
|
|
|
|
|
|
struct timezone
|
|
|
|
{
|
|
|
|
int tz_minuteswest; /* minutes W of Greenwich */
|
|
|
|
int tz_dsttime; /* type of dst correction */
|
|
|
|
};
|
|
|
|
|
|
|
|
int gettimeofday(struct timeval *tv, struct timezone *tz);
|
|
|
|
|
2009-06-03 05:25:21 -04:00
|
|
|
#if defined(__cplusplus)
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2009-02-27 09:24:25 -05:00
|
|
|
#endif /* _TIMEVAL_H */
|
2009-06-03 05:25:21 -04:00
|
|
|
|