mirror of
https://github.com/MariaDB/server.git
synced 2025-01-23 07:14:17 +01:00
269e95e473
git-svn-id: file:///svn/toku/tokudb.1032b@8073 c7de825b-a66e-492c-adef-691d508d4ae1
33 lines
454 B
C
33 lines
454 B
C
#ifndef TOKU_TIME_H
|
|
#define TOKU_TIME_H
|
|
|
|
#include <windows.h>
|
|
#include <time.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
struct timezone {
|
|
int tz_minuteswest;
|
|
int tz_dsttime;
|
|
};
|
|
|
|
int gettimeofday(struct timeval *tv, struct timezone *tz);
|
|
|
|
typedef enum {
|
|
CLOCK_REALTIME = 0
|
|
} clockid_t;
|
|
|
|
struct timespec {
|
|
long tv_sec;
|
|
long tv_nsec;
|
|
};
|
|
|
|
int clock_gettime(clockid_t clock_id, struct timespec *ts);
|
|
|
|
#ifdef __cplusplus
|
|
};
|
|
#endif
|
|
|
|
#endif
|