Project

General

Profile

Files » CVI_timer.c

Frédéric Blanc, 2016-01-29 10:30

 
#include "var.h"

/**
* @brief gestion du timer
* @param CVI
* @return CVI
* @date 25/02/2010
*
*/
int CVICALLBACK CVI_timer (int panel, int control, int event,
void *callbackData, int eventData1, int eventData2)
{

time_t t_date_heure;
switch (event)
{
case EVENT_TIMER_TICK:
ProcessSystemEvents ();
time (&t_date_heure);
Ctrl.time_elapsed=t_date_heure-Ctrl.time_start;
Ctrl.time_cycle++;
Set_panel_measure_time_elapsed();
fnct_measure ();
break;
}
return 0;
}
(4-4/25)