/dragonfly/test/sysperf/ |
H A D | blib.c | 16 static __thread struct timeval tv2; variable 31 gettimeofday(&tv2, NULL); in stop_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 D | mbwtest.c | 140 struct timeval tv2; variable 182 gettimeofday(&tv2, NULL); in stop_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 D | seekbench.c | 33 struct timeval tv2; in main() local 63 gettimeofday(&tv2, 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 D | webstress.c | 293 struct timeval tv2; in run_test() local 340 gettimeofday(&tv2, 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() 363 gettimeofday(&tv2, NULL); 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 D | convert.c | 95 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 D | defs.h | 92 double tv_delta_double(struct timeval *tv1, struct timeval *tv2);
|
/dragonfly/sys/platform/vkernel64/x86_64/ |
H A D | cpu_regs.c | 501 struct timeval tv1, tv2; in cpu_idle() local 510 gettimeofday(&tv2, 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/test/libpthread/ |
H A D | mutex_d.c | 314 struct timeval tv1, tv2; in waiter() local 407 assert (gettimeofday (&tv2, NULL) == 0); in waiter() 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() 412 assert (gettimeofday (&tv2, NULL) == 0); in waiter()
|
/dragonfly/usr.sbin/moused/ |
H A D | moused.c | 2330 struct timeval tv2; in r_timestamp() local 2343 tv2.tv_sec = rodent.clickthreshold/1000; in r_timestamp() 2344 tv2.tv_usec = (rodent.clickthreshold%1000)*1000; in r_timestamp() 2345 timersub(&tv1, &tv2, &tv); in r_timestamp() 2349 tv2.tv_sec = rodent.button2timeout/1000; in r_timestamp() 2350 tv2.tv_usec = (rodent.button2timeout%1000)*1000; in r_timestamp() 2351 timersub(&tv1, &tv2, &tv3); in r_timestamp() 2393 struct timeval tv2; in r_timeout() local 2398 tv2.tv_sec = rodent.button2timeout/1000; in r_timeout() 2399 tv2.tv_usec = (rodent.button2timeout%1000)*1000; in r_timeout() [all …]
|
/dragonfly/sys/kern/ |
H A D | kern_time.c | 106 struct timeval delta, tv1, tv2; in settime() local 137 tv2 = *tv; in settime() 138 timevalsub(&tv2, &maxtime); in settime() 139 if (tv2.tv_sec < -1) { in settime()
|
/dragonfly/contrib/gcc-8.0/gcc/ |
H A D | timevar.c | 754 timevar_def *tv2 = (*i).first; in print() local 760 snprintf (lname, 256, "`- %s", tv2->name); in print()
|
/dragonfly/sbin/hammer/ |
H A D | cmd_mirror.c | 1638 struct timeval tv2; in writebw() local 1662 gettimeofday(&tv2, NULL); in writebw() 1663 usec = (int)(tv2.tv_sec - tv1->tv_sec) * 1000000 + in writebw() 1664 (int)(tv2.tv_usec - tv1->tv_usec); in writebw()
|
/dragonfly/contrib/gcc-4.7/gcc/ |
H A D | c-typeck.c | 1364 tree tv2 = TYPE_VALUES (t2); 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 D | c-typeck.c | 1444 tree tv2 = TYPE_VALUES (t2); 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()
|