实例如下: #include <time> #ifdef WIN32 # include <windows> #else # include <sys> #endif #ifdef WIN32 int gettimeofday(struct timeval *tp, void *tzp) { time_t clock; struct tm tm; SYSTEMTIME wtm; GetLocalTime(&wtm); tm.tm_year = wtm.wYear - 1900; tm.tm_mon = wtm.wMonth - 1;
评论星级较低,若资源使用遇到问题可联系上传者,3个工作日内问题未解决可申请退款~