FACT++  1.0
static int get_elapsed_time ( )
static

Definition at line 247 of file dtq.c.

References DIM_last_time_millies, and get_current_time().

Referenced by dtq_add_entry(), dtq_clear_entry(), dtq_rem_entry(), dtq_task(), and stop_it().

248 {
249  int millies, deltat;
250  int now;
251 
252  now = get_current_time(&millies);
253  deltat = now - (int)DIM_last_time;
254  if((millies + 50) < DIM_last_time_millies)
255  {
256  deltat --;
257  }
258  return deltat;
259 }
static time_t DIM_last_time
Definition: dtq.c:67
static int DIM_last_time_millies
Definition: dtq.c:68
static int get_current_time(int *millies)
Definition: dtq.c:224

+ Here is the call graph for this function:

+ Here is the caller graph for this function: