timeUtil.h
Go to the documentation of this file.
1 #ifndef TIME_UTIL_H
2 #define TIME_UTIL_H
3 
7 typedef unsigned long long tick_t;
8 
14 
19 double get_cpu_frequency();
20 
25 #define tick2usec(t) ((t)*1e6/get_cpu_frequency())
26 
31 #define tick2msec(t) ((t)*1e3/get_cpu_frequency())
32 
37 #define tick2sec(t) ((t)/get_cpu_frequency())
38 
39 #endif
unsigned long long tick_t
tick_t get_tick()
get time stamp counter
Definition: timeUtil.cpp:7
double get_cpu_frequency()
get CPU frequency
Definition: timeUtil.cpp:28
unsigned long long tick_t
time stamp counter
Definition: timeUtil.h:7


hrpsys
Author(s): AIST, Fumio Kanehiro
autogenerated on Thu May 6 2021 02:41:51