Defines | 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.

Defines

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

Typedefs

typedef unsigned long long tick_t
 time stamp counter

Functions

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

Define 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.

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 Wed May 15 2019 05:02:20