octomap 1.5.0
|
00001 #ifndef OCTOMAP_TIMING_H_ 00002 #define OCTOMAP_TIMING_H_ 00003 00004 #ifdef _MSC_VER 00005 // MS compilers 00006 #include <sys/timeb.h> 00007 #include <sys/types.h> 00008 #include <winsock.h> 00009 void gettimeofday(struct timeval* t, void* timezone) { 00010 struct _timeb timebuffer; 00011 _ftime64_s( &timebuffer ); 00012 t->tv_sec= (long) timebuffer.time; 00013 t->tv_usec=1000*timebuffer.millitm; 00014 } 00015 #else 00016 // GCC and minGW 00017 #include <sys/time.h> 00018 #endif 00019 00020 00021 #endif