Home
last modified time | relevance | path

Searched refs:tv1 (Results 1 – 16 of 16) sorted by relevance

/dragonfly/test/sysperf/
H A Dblib.c15 static __thread struct timeval tv1; variable
22 gettimeofday(&tv1, NULL); in start_timing()
32 us = (tv2.tv_usec - tv1.tv_usec) + (tv2.tv_sec - tv1.tv_sec) * 1000000LL; in stop_timing()
48 tv1 = tv2; in stop_timing()
H A Dmbwtest.c139 struct timeval tv1; variable
173 gettimeofday(&tv1, NULL); in start_timing()
184 us = tv2.tv_usec + 1000000 - tv1.tv_usec + in stop_timing()
185 (tv2.tv_sec - tv1.tv_sec - 1) * 1000000; in stop_timing()
/dragonfly/test/debug/
H A Dseekbench.c32 struct timeval tv1; in main() local
57 gettimeofday(&tv1, NULL); in main()
64 us = (tv2.tv_usec + 1000000 - tv1.tv_usec) + in main()
65 (tv2.tv_sec - 1 - tv1.tv_sec) * 1000000; in main()
/dragonfly/test/stress/webstress/
H A Dwebstress.c292 struct timeval tv1; in run_test() local
338 gettimeofday(&tv1, NULL); in run_test()
341 us = (tv2.tv_sec - tv1.tv_sec) * 1000000; in run_test()
342 us += (int)(tv2.tv_usec - tv1.tv_usec) / 1000000; in run_test()
364 us = (tv2.tv_sec - tv1.tv_sec) * 1000000; in run_test()
365 us += (int)(tv2.tv_usec - tv1.tv_usec); in run_test()
/dragonfly/usr.sbin/dntpd/
H A Dconvert.c95 tv_delta_double(struct timeval *tv1, struct timeval *tv2) in tv_delta_double() argument
99 usec = (double)(tv2->tv_sec - tv1->tv_sec) + in tv_delta_double()
100 (double)(tv2->tv_usec - tv1->tv_usec) / 1000000.0; in tv_delta_double()
H A Dntpreq.c100 struct timeval tv1; in udp_ntptimereq() local
122 gettimeofday(&tv1, NULL); in udp_ntptimereq()
163 tv_add_micro(rtvp, (long)(tv_delta_double(&tv1, ltvp) * 1000000.0) / 2); in udp_ntptimereq()
H A Ddefs.h92 double tv_delta_double(struct timeval *tv1, struct timeval *tv2);
/dragonfly/sys/kern/
H A Dkern_time.c106 struct timeval delta, tv1, tv2; in settime() local
115 microtime(&tv1); in settime()
117 timevalsub(&delta, &tv1); in settime()
135 if (tv1.tv_sec > maxtime.tv_sec) in settime()
136 maxtime = tv1; in settime()
144 if (tv1.tv_sec == laststep.tv_sec) { in settime()
149 tv->tv_sec = tv1.tv_sec + 1; in settime()
/dragonfly/sys/platform/vkernel64/x86_64/
H A Dcpu_regs.c501 struct timeval tv1, tv2; in cpu_idle() local
502 gettimeofday(&tv1, NULL); in cpu_idle()
511 if (tv2.tv_usec - tv1.tv_usec + in cpu_idle()
512 (tv2.tv_sec - tv1.tv_sec) * 1000000 in cpu_idle()
/dragonfly/usr.sbin/moused/
H A Dmoused.c2329 struct timeval tv1; in r_timestamp() local
2340 gettimeofday(&tv1, NULL); in r_timestamp()
2345 timersub(&tv1, &tv2, &tv); in r_timestamp()
2351 timersub(&tv1, &tv2, &tv3); in r_timestamp()
2365 bstate[i].tv = tv1; in r_timestamp()
2368 bstate[i].tv = tv1; in r_timestamp()
2375 bstate[i].tv = tv1; in r_timestamp()
2392 struct timeval tv1; in r_timeout() local
2397 gettimeofday(&tv1, NULL); in r_timeout()
2400 timersub(&tv1, &tv2, &tv); in r_timeout()
/dragonfly/sbin/ping/
H A Dping.c969 struct timeval tv1; in pr_pack() local
978 if (cc - ICMP_MINLEN - phdr_len >= (int)sizeof(tv1)) { in pr_pack()
981 tv1.tv_sec = ntohl(tv32.tv32_sec); in pr_pack()
982 tv1.tv_usec = ntohl(tv32.tv32_usec); in pr_pack()
983 tvsub(tv, &tv1); in pr_pack()
/dragonfly/lib/libc/rpc/
H A Dsvc_vc.c506 struct timeval tv0, tv1; in write_vc() local
531 gettimeofday(&tv1, NULL); in write_vc()
532 if (tv1.tv_sec - tv0.tv_sec >= 2) { in write_vc()
/dragonfly/sbin/hammer/
H A Dcmd_mirror.c68 uint64_t *bwcount, struct timeval *tv1);
1636 uint64_t *bwcount, struct timeval *tv1) in writebw() argument
1663 usec = (int)(tv2.tv_sec - tv1->tv_sec) * 1000000 + in writebw()
1664 (int)(tv2.tv_usec - tv1->tv_usec); in writebw()
1667 gettimeofday(tv1, NULL); in writebw()
/dragonfly/test/libpthread/
H A Dmutex_d.c314 struct timeval tv1, tv2; in waiter() local
408 tv1.tv_sec = tv2.tv_sec + 5; in waiter()
409 tv1.tv_usec = tv2.tv_usec; in waiter()
411 while (timercmp (&tv2, &tv1,<)) { in waiter()
/dragonfly/contrib/gcc-4.7/gcc/
H A Dc-typeck.c1363 tree tv1 = TYPE_VALUES (t1); in tagged_types_tu_compatible_p() local
1366 if (tv1 == tv2) in tagged_types_tu_compatible_p()
1371 for (;tv1 && tv2; tv1 = TREE_CHAIN (tv1), tv2 = TREE_CHAIN (tv2)) in tagged_types_tu_compatible_p()
1373 if (TREE_PURPOSE (tv1) != TREE_PURPOSE (tv2)) in tagged_types_tu_compatible_p()
1375 if (simple_cst_equal (TREE_VALUE (tv1), TREE_VALUE (tv2)) != 1) in tagged_types_tu_compatible_p()
1382 if (tv1 == NULL_TREE && tv2 == NULL_TREE) in tagged_types_tu_compatible_p()
1386 if (tv1 == NULL_TREE || tv2 == NULL_TREE) in tagged_types_tu_compatible_p()
/dragonfly/contrib/gcc-8.0/gcc/c/
H A Dc-typeck.c1443 tree tv1 = TYPE_VALUES (t1); in tagged_types_tu_compatible_p() local
1446 if (tv1 == tv2) in tagged_types_tu_compatible_p()
1451 for (;tv1 && tv2; tv1 = TREE_CHAIN (tv1), tv2 = TREE_CHAIN (tv2)) in tagged_types_tu_compatible_p()
1453 if (TREE_PURPOSE (tv1) != TREE_PURPOSE (tv2)) in tagged_types_tu_compatible_p()
1455 if (simple_cst_equal (TREE_VALUE (tv1), TREE_VALUE (tv2)) != 1) in tagged_types_tu_compatible_p()
1462 if (tv1 == NULL_TREE && tv2 == NULL_TREE) in tagged_types_tu_compatible_p()
1466 if (tv1 == NULL_TREE || tv2 == NULL_TREE) in tagged_types_tu_compatible_p()