hrplib
hrpPlanner
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
14
tick_t
HRPPLANNER_API
get_tick
();
15
double
HRPPLANNER_API
get_cpu_frequency
();
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
tick_t
unsigned long long tick_t
Definition:
TimeUtil.h:9
get_tick
tick_t HRPPLANNER_API get_tick()
Definition:
TimeUtil.cpp:6
get_cpu_frequency
double HRPPLANNER_API get_cpu_frequency()
Definition:
TimeUtil.cpp:33
HRPPLANNER_API
#define HRPPLANNER_API
Definition:
exportdef.h:22
exportdef.h
openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Thu Sep 8 2022 02:24:05