Macros | Typedefs | Functions
timeUtil.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define tick2msec(t)   ((t)*1e3/get_cpu_frequency())
 convert time stamp counter into msec More...
 
#define tick2sec(t)   ((t)/get_cpu_frequency())
 convert time stamp counter into sec More...
 
#define tick2usec(t)   ((t)*1e6/get_cpu_frequency())
 convert time stamp counter into usec More...
 

Typedefs

typedef unsigned long long tick_t
 time stamp counter More...
 

Functions

double get_cpu_frequency ()
 get CPU frequency More...
 
tick_t get_tick ()
 get time stamp counter More...
 

Macro Definition Documentation

#define tick2msec (   t)    ((t)*1e3/get_cpu_frequency())

convert time stamp counter into msec

Parameters
tvalue of time stamp counter

Definition at line 31 of file timeUtil.h.

#define tick2sec (   t)    ((t)/get_cpu_frequency())

convert time stamp counter into sec

Parameters
tvalue of time stamp counter

Definition at line 37 of file timeUtil.h.

#define tick2usec (   t)    ((t)*1e6/get_cpu_frequency())

convert time stamp counter into usec

Parameters
tvalue of time stamp counter

Definition at line 25 of file timeUtil.h.

Typedef Documentation

typedef unsigned long long tick_t

time stamp counter

Definition at line 7 of file timeUtil.h.

Function Documentation

double get_cpu_frequency ( )

get CPU frequency

Returns
CPU frequency[kHz]

Definition at line 28 of file timeUtil.cpp.

tick_t get_tick ( )

get time stamp counter

Returns
value of time stamp counter

Definition at line 7 of file timeUtil.cpp.



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