TimeUtil.h
Go to the documentation of this file.
00001 #ifndef __TIME_UTIL_H__
00002 #define __TIME_UTIL_H__
00003 
00004 #ifndef tick_t
00005 #ifdef _WIN32
00006 #include <windows.h>
00007 typedef LONGLONG tick_t;
00008 #else
00009 typedef unsigned long long tick_t;
00010 #endif
00011 #endif
00012 #include "exportdef.h"
00013 
00014 tick_t HRPPLANNER_API get_tick();
00015 double HRPPLANNER_API get_cpu_frequency();
00016 #define tick2usec(t)    ((t)*1e6/get_cpu_frequency())
00017 #define tick2msec(t)    ((t)*1e3/get_cpu_frequency())
00018 #define tick2sec(t)     ((t)/get_cpu_frequency())
00019 
00020 #endif


openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Thu Apr 11 2019 03:30:19