/* To provide updates on every full second (as good as possible)
* we don’t use sleep(interval) but we sleep until the next
* second (with microsecond precision) plus (interval-1)
/* To provide updates on every full second (as good as possible)
* we don’t use sleep(interval) but we sleep until the next
* second (with microsecond precision) plus (interval-1)
struct timeval current_timeval;
gettimeofday(¤t_timeval, NULL);
struct timeval current_timeval;
gettimeofday(¤t_timeval, NULL);