Example for W32Compat usage, e.g. gettimeofday
- Author
- MIP
#include <Base/Common/W32Compat.hh>
#include <iostream>
#ifdef WIN32
# include <windows.h>
#else
# include <sys/time.h>
#endif
using namespace std;
int main(){
timeval tv;
gettimeofday(&tv,NULL);
cout <<"sec: "<<tv.tv_sec<<endl;
return 0;
}