Main MRPT website > C++ reference for MRPT 1.4.0
octomap_timing.h
Go to the documentation of this file.
1 /* +---------------------------------------------------------------------------+
2  | Mobile Robot Programming Toolkit (MRPT) |
3  | http://www.mrpt.org/ |
4  | |
5  | Copyright (c) 2005-2016, Individual contributors, see AUTHORS file |
6  | See: http://www.mrpt.org/Authors - All rights reserved. |
7  | Released under BSD License. See details in http://www.mrpt.org/License |
8  +---------------------------------------------------------------------------+ */
9 #ifndef OCTOMAP_TIMING_H_
10 #define OCTOMAP_TIMING_H_
11 
12 #ifdef _MSC_VER
13  // MS compilers
14  #include <sys/timeb.h>
15  #include <sys/types.h>
16  #include <winsock.h>
17  void gettimeofday(struct timeval* t, void* timezone) {
18  struct _timeb timebuffer;
19  _ftime64_s( &timebuffer );
20  t->tv_sec= (long) timebuffer.time;
21  t->tv_usec=1000*timebuffer.millitm;
22  }
23 #else
24  // GCC and minGW
25  #include <sys/time.h>
26 #endif
27 
28 
29 #endif
EIGEN_STRONG_INLINE const AdjointReturnType t() const
Transpose.



Page generated by Doxygen 1.8.11 for MRPT 1.4.0 SVN:Unversioned directory at Mon May 30 18:20:32 UTC 2016