40 #define MINIMUM_IPC_SLEEP 0.005
75 void verb(
int start=0,
int end=10){printf(
"class timer tocs...\n");
for (
int i=start;i<end;i++) {printf(
"toc[%d]=%3.4f ms\n",i,
lar_toc[i]*1000.0);}};
pthread_mutex_t clock_set_mutex
char run_ipc_sleep(double, int, char)
to use this method is required to run set_ipc_sleep method previously
void set_ipc_sleep(int)
method with run_ipc_sleep that allows that to set a refresh rate of a specified code.
void verb(int start=0, int end=10)
pthread_mutex_t lar_toc_mutex
void toc(int)
method when used with t1c enables you to know how many time have passed since
pthread_mutex_t clock_tic_mutex
c_timer()
runned when created class
void run_sleep(int, double)
method to use inside thread to avoid collisions between threads
pthread_mutex_t lar_tic_mutex
~c_timer()
method ruuned when class is destroyed
void tic(int)
method when used with toc enables you to know how many time have passed since