Lines Matching refs:tvlast
29 static int do_test( struct timeval timetv, struct timeval tvlast )
42 tvdiff_old = abs_tval(sub_tval(timetv, tvlast));
48 tvdiff_new = sub_tval(timetv, tvlast);
56 printf( "timetv %lli|%07li, tvlast %lli|%07li: tvdiff_old: %lli|%07li -> %i, tvdiff_new: %lli|%07li -> %i, same cond: %s\n",
58 (long long) tvlast.tv_sec, (u_long)tvlast.tv_usec,
70 * Both timetv and tvlast iterate over the given range, in all combinations.
78 struct timeval tvlast;
82 for ( tvlast.tv_sec = start_sec; tvlast.tv_sec <= stop_sec; tvlast.tv_sec += step_sec )
83 for ( tvlast.tv_usec = start_usec; tvlast.tv_usec <= stop_usec; tvlast.tv_usec += step_usec )
85 int rc = do_test( timetv, tvlast );