Macros | Typedefs | Functions
TimeUtil.h File Reference
#include "exportdef.h"
Include dependency graph for TimeUtil.h:
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())
 
#define tick2sec(t)   ((t)/get_cpu_frequency())
 
#define tick2usec(t)   ((t)*1e6/get_cpu_frequency())
 

Typedefs

typedef unsigned long long tick_t
 

Functions

double HRPPLANNER_API get_cpu_frequency ()
 
tick_t HRPPLANNER_API get_tick ()
 

Macro Definition Documentation

◆ tick2msec

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

Definition at line 17 of file TimeUtil.h.

◆ tick2sec

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

Definition at line 18 of file TimeUtil.h.

◆ tick2usec

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

Definition at line 16 of file TimeUtil.h.

Typedef Documentation

◆ tick_t

typedef unsigned long long tick_t

Definition at line 9 of file TimeUtil.h.

Function Documentation

◆ get_cpu_frequency()

double HRPPLANNER_API get_cpu_frequency ( )

Definition at line 33 of file TimeUtil.cpp.

◆ get_tick()

tick_t HRPPLANNER_API get_tick ( )

Definition at line 6 of file TimeUtil.cpp.



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:06