#ifndef vcl_sys_time_h_ #define vcl_sys_time_h_ #ifdef _MSC_VER # include #endif #ifndef _WIN32 #include #endif #if defined(_WIN32) && !defined(__CYGWIN__) # include extern "C" int gettimeofday(struct timeval*, struct timezone*); #elif defined(__CYGWIN__) # include # include # include #elif defined(__GNUC__) && !defined(__INTEL_COMPILER) # define __restrict /* */ # include # undef __restrict #elif !defined(VCL_NO_SYS_TIME_H) # include #elif defined(SYSV) extern "C" int gettimeofday(struct timeval *tp); #else extern "C" int gettimeofday(struct timeval*, struct timezone*); #endif //struct timeval: // time_t tv_sec seconds // suseconds_t tv_usec microseconds //struct itimerval: // struct timeval it_interval timer interval // struct timeval it_value current value // int getitimer(int, struct itimerval *); // int setitimer(int, const struct itimerval *, struct itimerval *); // int gettimeofday(struct timeval *, void *); // int select(int, fd_set *, fd_set *, fd_set *, struct timeval *); // int utimes(const char *, const struct timeval [2]); #endif // vcl_sys_time_h_