Timer

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

Classes

class  c_timer

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.


Defines

#define MINIMUM_IPC_SLEEP   0.005

Functions

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

Detailed Description

This module implements tictoc matlab like timers.


Define Documentation

#define MINIMUM_IPC_SLEEP   0.005

Definition at line 40 of file timer.h.


Function Documentation

c_timer::c_timer (  )  [inherited]

runned when created class

Definition at line 61 of file timer.cpp.

double c_timer::get_toc ( int  i  )  [inherited]

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 
) [inherited]

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 
) [inherited]

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  )  [inherited]

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  )  [inherited]

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  )  [inherited]

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 (  )  [inherited]

method ruuned when class is destroyed

Definition at line 89 of file timer.cpp.

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


atlasmv_base
Author(s): David Gameiro, Jorge Almeida
autogenerated on Wed Jul 23 04:34:43 2014