TimeUtil.h
Go to the documentation of this file.
1 #ifndef __TIME_UTIL_H__
2 #define __TIME_UTIL_H__
3 
4 #ifndef tick_t
5 #ifdef _WIN32
6 #include <windows.h>
7 typedef LONGLONG tick_t;
8 #else
9 typedef unsigned long long tick_t;
10 #endif
11 #endif
12 #include "exportdef.h"
13 
16 #define tick2usec(t) ((t)*1e6/get_cpu_frequency())
17 #define tick2msec(t) ((t)*1e3/get_cpu_frequency())
18 #define tick2sec(t) ((t)/get_cpu_frequency())
19 
20 #endif
unsigned long long tick_t
Definition: TimeUtil.h:9
tick_t HRPPLANNER_API get_tick()
Definition: TimeUtil.cpp:6
double HRPPLANNER_API get_cpu_frequency()
Definition: TimeUtil.cpp:33
#define HRPPLANNER_API
Definition: exportdef.h:22


openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Sat May 8 2021 02:42:41