Searched refs:tv1 (Results 1 - 15 of 15) sorted by relevance

/freebsd-9.3-release/usr.sbin/timed/timed/
H A Dmeasure.c313 timevaladd(tv1, tv2)
314 struct timeval *tv1, *tv2;
316 tv1->tv_sec += tv2->tv_sec;
317 tv1->tv_usec += tv2->tv_usec;
318 if (tv1->tv_usec >= 1000000) {
319 tv1->tv_sec++;
320 tv1->tv_usec -= 1000000;
322 if (tv1->tv_usec < 0) {
323 tv1->tv_sec--;
324 tv1
[all...]
/freebsd-9.3-release/crypto/heimdal/lib/krb5/
H A Dtest_crypto.c43 struct timeval tv1, tv2; local
69 gettimeofday(&tv1, NULL);
80 timevalsub(&tv2, &tv1);
99 struct timeval tv1, tv2; local
113 gettimeofday(&tv1, NULL);
125 timevalsub(&tv2, &tv1);
/freebsd-9.3-release/contrib/ntp/sntp/libevent/test/
H A Dregress.h120 #define test_timeval_diff_leq(tv1, tv2, diff, tolerance) \
121 tt_int_op(labs(timeval_msec_diff((tv1), (tv2)) - diff), <=, tolerance)
123 #define test_timeval_diff_eq(tv1, tv2, diff) \
124 test_timeval_diff_leq((tv1), (tv2), (diff), 50)
H A Dregress_util.c1251 struct timeval tv1, tv2, tv3, diff1, diff2; local
1256 evutil_gettimeofday(&tv1, NULL);
1262 evutil_timersub(&tv2, &tv1, &diff1);
H A Dregress.c3088 struct timeval tv1, tv2, tv3, now; local
3101 tt_int_op(0, ==, event_base_gettimeofday_cached(NULL, &tv1));
3103 tt_int_op(timeval_msec_diff(&tv1, &tv2), <, 10);
3104 tt_int_op(timeval_msec_diff(&tv1, &now), <, 10);
3109 ev1 = event_new(base, -1, 0, cache_time_cb, &tv1);
3120 tt_int_op(labs(timeval_msec_diff(&tv1,&tv2)), >, 10);
3123 tt_int_op(labs(timeval_msec_diff(&tv1,&tv2)), >, 10);
3126 tt_assert(evutil_timercmp(&tv1, &tv2, ==));
/freebsd-9.3-release/contrib/llvm/include/llvm/Support/
H A DTimeValue.h183 friend TimeValue operator + (const TimeValue &tv1, const TimeValue &tv2);
188 friend TimeValue operator - (const TimeValue &tv1, const TimeValue &tv2);
371 inline TimeValue operator + (const TimeValue &tv1, const TimeValue &tv2) { argument
372 TimeValue sum (tv1.seconds_ + tv2.seconds_, tv1.nanos_ + tv2.nanos_);
377 inline TimeValue operator - (const TimeValue &tv1, const TimeValue &tv2) { argument
378 TimeValue difference (tv1.seconds_ - tv2.seconds_, tv1.nanos_ - tv2.nanos_ );
/freebsd-9.3-release/usr.sbin/diskinfo/
H A Ddiskinfo.c195 static struct timeval tv1, tv2; variable in typeref:struct:timeval
206 gettimeofday(&tv1, NULL);
215 dt = (tv2.tv_usec - tv1.tv_usec) / 1e6;
216 dt += (tv2.tv_sec - tv1.tv_sec);
227 dt = (tv2.tv_usec - tv1.tv_usec) / 1e6;
228 dt += (tv2.tv_sec - tv1.tv_sec);
363 dtmega = (tv2.tv_usec - tv1.tv_usec) / 1e6;
364 dtmega += (tv2.tv_sec - tv1.tv_sec);
374 dtsector = (tv2.tv_usec - tv1.tv_usec) / 1e6;
375 dtsector += (tv2.tv_sec - tv1
[all...]
/freebsd-9.3-release/contrib/ntp/kernel/sys/
H A Dbsd_audioirig.h78 struct timeval tv1,tv2,tv3; /* time stamps (median filter) */ member in struct:auib
/freebsd-9.3-release/sys/kern/
H A Dkern_time.c114 struct timeval delta, tv1, tv2; local
120 microtime(&tv1);
122 timevalsub(&delta, &tv1);
140 if (tv1.tv_sec > maxtime.tv_sec)
141 maxtime = tv1;
149 if (tv1.tv_sec == laststep.tv_sec) {
154 tv->tv_sec = tv1.tv_sec + 1;
/freebsd-9.3-release/lib/libkse/test/
H A Dmutex_d.c317 struct timeval tv1, tv2; local
411 tv1.tv_sec = tv2.tv_sec + 5;
412 tv1.tv_usec = tv2.tv_usec;
414 while (timercmp (&tv2, &tv1,<)) {
/freebsd-9.3-release/sbin/ping/
H A Dping.c1044 struct timeval tv1; local
1053 if (cc - ICMP_MINLEN - phdr_len >= sizeof(tv1)) {
1056 tv1.tv_sec = ntohl(tv32.tv32_sec);
1057 tv1.tv_usec = ntohl(tv32.tv32_usec);
1058 tvsub(tv, &tv1);
/freebsd-9.3-release/lib/libc/rpc/
H A Dsvc_vc.c531 struct timeval tv0, tv1; local
556 gettimeofday(&tv1, NULL);
557 if (tv1.tv_sec - tv0.tv_sec >= 2) {
/freebsd-9.3-release/sys/compat/linux/
H A Dlinux_misc.c487 struct timeval tv0, tv1, utv, *tvp; local
549 microtime(&tv1);
550 timevalsub(&tv1, &tv0);
551 timevalsub(&utv, &tv1);
/freebsd-9.3-release/contrib/gcc/
H A Dc-typeck.c1092 tree tv1 = TYPE_VALUES (t1);
1095 if (tv1 == tv2)
1100 for (;tv1 && tv2; tv1 = TREE_CHAIN (tv1), tv2 = TREE_CHAIN (tv2))
1102 if (TREE_PURPOSE (tv1) != TREE_PURPOSE (tv2))
1104 if (simple_cst_equal (TREE_VALUE (tv1), TREE_VALUE (tv2)) != 1)
1111 if (tv1 == NULL_TREE && tv2 == NULL_TREE)
1115 if (tv1 == NULL_TREE || tv2 == NULL_TREE)
1086 tree tv1 = TYPE_VALUES (t1); local
/freebsd-9.3-release/contrib/ntp/sntp/libevent/
H A Devent.c1328 /* True iff tv1 and tv2 have the same common-timeout index, or if neither
1331 is_same_common_timeout(const struct timeval *tv1, const struct timeval *tv2) argument
1333 return (tv1->tv_usec & ~MICROSECONDS_MASK) ==

Completed in 318 milliseconds