timeUtil.h
Go to the documentation of this file.
00001 #ifndef TIME_UTIL_H
00002 #define TIME_UTIL_H
00003 
00007 typedef unsigned long long tick_t;
00008 
00013 tick_t get_tick();
00014 
00019 double get_cpu_frequency();
00020 
00025 #define tick2usec(t)    ((t)*1e6/get_cpu_frequency())
00026 
00031 #define tick2msec(t)    ((t)*1e3/get_cpu_frequency())
00032 
00037 #define tick2sec(t)     ((t)/get_cpu_frequency())
00038 
00039 #endif


hrpsys
Author(s): AIST, Fumio Kanehiro
autogenerated on Wed Sep 6 2017 02:35:56