Timer
This module implements tictoc matlab like timers.  
More...
Detailed Description
This module implements tictoc matlab like timers. 
Define Documentation
      
        
          | #define MINIMUM_IPC_SLEEP   0.005 | 
        
      
 
 
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] | 
        
      
 
 
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.