Files | Classes | Macros | Functions
Timer

This module implements tictoc matlab like timers. More...

Files

file  timer.cpp
 Main sorce code from the c_timer class.
 
file  timer.h
 main header file for this module. Includes, global vars, funtion prototypes, etc.
 

Classes

class  c_timer
 

Macros

#define _TIMER_CPP_
 
#define MINIMUM_IPC_SLEEP   0.005
 

Functions

 c_timer::c_timer ()
 runned when created class More...
 
double c_timer::get_toc (int)
 
double lar_get_time ()
 function to get time More...
 
char c_timer::run_ipc_sleep (double, int, char)
 to use this method is required to run set_ipc_sleep method previously More...
 
void c_timer::run_sleep (int, double)
 method to use inside thread to avoid collisions between threads More...
 
void c_timer::set_ipc_sleep (int)
 method with run_ipc_sleep that allows that to set a refresh rate of a specified code. More...
 
void c_timer::tic (int)
 method when used with toc enables you to know how many time have passed since More...
 
void c_timer::toc (int)
 method when used with t1c enables you to know how many time have passed since More...
 
 c_timer::~c_timer ()
 method ruuned when class is destroyed More...
 

Detailed Description

This module implements tictoc matlab like timers.

Macro Definition Documentation

#define _TIMER_CPP_

Definition at line 32 of file timer.cpp.

#define MINIMUM_IPC_SLEEP   0.005

Definition at line 40 of file timer.h.

Function Documentation

c_timer::c_timer ( )

runned when created class

Definition at line 61 of file timer.cpp.

double c_timer::get_toc ( int  i)

Definition at line 217 of file timer.cpp.

double lar_get_time ( )

function to get time

Returns
actual time in double format in seconds with a precision of 0.01sec

Definition at line 44 of file timer.cpp.

char c_timer::run_ipc_sleep ( double  desired_freq,
int  i,
char  verbose 
)

to use this method is required to run set_ipc_sleep method previously

Parameters
desired_freq- frequency to execute a specified code
i- number of timer
verbose-
Returns

Definition at line 148 of file timer.cpp.

void c_timer::run_sleep ( int  i,
double  desired_freq 
)

method to use inside thread to avoid collisions between threads

Parameters
i- the same number of used when called tic
desired_freq- frequency in Hz

Definition at line 115 of file timer.cpp.

void c_timer::set_ipc_sleep ( int  i)

method with run_ipc_sleep that allows that to set a refresh rate of a specified code.

Parameters
i- number of the ipc_sleep, it can exist 10 at maximum

Definition at line 98 of file timer.cpp.

void c_timer::tic ( int  i)

method when used with toc enables you to know how many time have passed since

Parameters
i- integer values from 0 to 10;

Definition at line 190 of file timer.cpp.

void c_timer::toc ( int  i)

method when used with t1c enables you to know how many time have passed since

Parameters
i- integer values from 0 to 10;

Definition at line 205 of file timer.cpp.

c_timer::~c_timer ( )

method ruuned when class is destroyed

Definition at line 89 of file timer.cpp.



atlasmv_base
Author(s): David Gameiro, Jorge Almeida
autogenerated on Mon Mar 2 2015 01:31:28