windows下gettimeofday的定义和使用
#include <time.h>#include <windows.h>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; ...