6 static struct timeval tv_old;
8 fix timer_get_fixed_seconds(void)
11 struct timeval tv_now;
12 gettimeofday(&tv_now, NULL);
13 x=i2f(tv_now.tv_sec - tv_old.tv_sec) + fixdiv(i2f((tv_now.tv_usec - tv_old.tv_usec)/1000), i2f(1000));
19 gettimeofday(&tv_old, NULL);