Home
last modified time | relevance | path

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

12

/third_party/ltp/testcases/kernel/syscalls/settimeofday/
Dsettimeofday01.c22 struct timeval tv1, tv2; in verify_settimeofday() local
24 if (gettimeofday(&tv1, NULL) == -1) in verify_settimeofday()
27 tv1.tv_sec += VAL_SEC; in verify_settimeofday()
28 tv1.tv_usec += VAL_MSEC; in verify_settimeofday()
29 if (tv1.tv_usec >= USEC_PER_SEC) in verify_settimeofday()
30 tv1.tv_usec = VAL_MSEC; in verify_settimeofday()
32 TEST(settimeofday(&tv1, NULL)); in verify_settimeofday()
41 if (tv2.tv_sec > tv1.tv_sec) { in verify_settimeofday()
43 (suseconds_t) (tv2.tv_sec - tv1.tv_sec) * 1000 + in verify_settimeofday()
44 (tv2.tv_usec - tv1.tv_usec) / 1000; in verify_settimeofday()
[all …]
/third_party/ltp/testcases/kernel/syscalls/gettimeofday/
Dgettimeofday02.c36 struct __kernel_old_timeval tv1, tv2; in verify_gettimeofday() local
44 if (tst_syscall(__NR_gettimeofday, &tv1, NULL)) in verify_gettimeofday()
51 if (tv2.tv_sec < tv1.tv_sec || in verify_gettimeofday()
52 (tv2.tv_sec == tv1.tv_sec && tv2.tv_usec < tv1.tv_usec)) { in verify_gettimeofday()
55 (intmax_t) tv1.tv_sec, (intmax_t) tv1.tv_usec, in verify_gettimeofday()
60 tv1 = tv2; in verify_gettimeofday()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/Support/
DTimeValue.h192 friend TimeValue operator + (const TimeValue &tv1, const TimeValue &tv2);
197 friend TimeValue operator - (const TimeValue &tv1, const TimeValue &tv2);
371 inline TimeValue operator + (const TimeValue &tv1, const TimeValue &tv2) {
372 TimeValue sum (tv1.seconds_ + tv2.seconds_, tv1.nanos_ + tv2.nanos_);
377 inline TimeValue operator - (const TimeValue &tv1, const TimeValue &tv2) {
378 TimeValue difference (tv1.seconds_ - tv2.seconds_, tv1.nanos_ - tv2.nanos_ );
/third_party/node/test/wasi/c/
Dgettimeofday.c6 struct timeval tv1; in main() local
15 r = gettimeofday(&tv1, NULL); in main()
17 s1 = tv1.tv_sec; in main()
18 us1 = tv1.tv_usec; in main()
/third_party/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_stdcall_clnt_call/
Drpc_clnt_call_scalability.c67 struct timeval tv1, tv2; in main() local
94 gettimeofday(&tv1, &tz); in main()
109 (tv2.tv_sec - tv1.tv_sec) * 1000000L + (tv2.tv_usec - in main()
110 tv1.tv_usec); in main()
Drpc_clnt_call_performance.c93 struct timeval tv1, tv2; in main() local
120 gettimeofday(&tv1, &tz); in main()
135 (tv2.tv_sec - tv1.tv_sec) * 1000000L + (tv2.tv_usec - in main()
136 tv1.tv_usec); in main()
/third_party/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_createdestroy_svcudp_create/
Drpc_svcudp_create_performance.c93 struct timeval tv1, tv2; in main() local
109 gettimeofday(&tv1, &tz); in main()
119 (tv2.tv_sec - tv1.tv_sec) * 1000000L + (tv2.tv_usec - in main()
120 tv1.tv_usec); in main()
/third_party/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_createdestroy_svcraw_create/
Drpc_svcraw_create_performance.c93 struct timeval tv1, tv2; in main() local
106 gettimeofday(&tv1, &tz); in main()
116 (tv2.tv_sec - tv1.tv_sec) * 1000000L + (tv2.tv_usec - in main()
117 tv1.tv_usec); in main()
/third_party/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_createdestroy_svctcp_create/
Drpc_svctcp_create_performance.c93 struct timeval tv1, tv2; in main() local
109 gettimeofday(&tv1, &tz); in main()
119 (tv2.tv_sec - tv1.tv_sec) * 1000000L + (tv2.tv_usec - in main()
120 tv1.tv_usec); in main()
/third_party/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_createdestroy_clntraw_create/
Drpc_clntraw_create_performance.c93 struct timeval tv1, tv2; in main() local
107 gettimeofday(&tv1, &tz); in main()
117 (tv2.tv_sec - tv1.tv_sec) * 1000000L + (tv2.tv_usec - in main()
118 tv1.tv_usec); in main()
Drpc_clntraw_create_complex.c49 struct timeval tv1, tv2; in main() local
92 gettimeofday(&tv1, &tz); in main()
101 (tv2.tv_sec - tv1.tv_sec) * 1000000L + in main()
102 (tv2.tv_usec - tv1.tv_usec); in main()
/third_party/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_stdcall_callrpc/
Drpc_callrpc_scalability.c93 struct timeval tv1, tv2; in main() local
109 gettimeofday(&tv1, &tz); in main()
124 (tv2.tv_sec - tv1.tv_sec) * 1000000L + (tv2.tv_usec - in main()
125 tv1.tv_usec); in main()
Drpc_callrpc_performance.c93 struct timeval tv1, tv2; in main() local
109 gettimeofday(&tv1, &tz); in main()
124 (tv2.tv_sec - tv1.tv_sec) * 1000000L + (tv2.tv_usec - in main()
125 tv1.tv_usec); in main()
/third_party/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_simple_rpc_broadcast/
Dtirpc_rpc_broadcast_performance.c99 struct timeval tv1, tv2; in main() local
116 gettimeofday(&tv1, &tz); in main()
129 (tv2.tv_sec - tv1.tv_sec) * 1000000L + (tv2.tv_usec - in main()
130 tv1.tv_usec); in main()
/third_party/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_broadc_clnt_broadcast/
Drpc_clnt_broadcast_scalability.c95 struct timeval tv1, tv2; in main() local
111 gettimeofday(&tv1, &tz); in main()
127 (tv2.tv_sec - tv1.tv_sec) * 1000000L + (tv2.tv_usec - in main()
128 tv1.tv_usec); in main()
Drpc_clnt_broadcast_performance.c95 struct timeval tv1, tv2; in main() local
111 gettimeofday(&tv1, &tz); in main()
127 (tv2.tv_sec - tv1.tv_sec) * 1000000L + (tv2.tv_usec - in main()
128 tv1.tv_usec); in main()
/third_party/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_simple_rpc_broadcast_exp/
Dtirpc_rpc_broadcast_exp_performance.c99 struct timeval tv1, tv2; in main() local
116 gettimeofday(&tv1, &tz); in main()
130 (tv2.tv_sec - tv1.tv_sec) * 1000000L + (tv2.tv_usec - in main()
131 tv1.tv_usec); in main()
/third_party/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_simple_rpc_call/
Dtirpc_rpc_call_performance.c94 struct timeval tv1, tv2; in main() local
118 gettimeofday(&tv1, &tz); in main()
130 (tv2.tv_sec - tv1.tv_sec) * 1000000L + (tv2.tv_usec - in main()
131 tv1.tv_usec); in main()
/third_party/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_createdestroy_clnttcp_create/
Drpc_clnttcp_create_performance.c96 struct timeval tv1, tv2; in main() local
123 gettimeofday(&tv1, &tz); in main()
137 (tv2.tv_sec - tv1.tv_sec) * 1000000L + (tv2.tv_usec - in main()
138 tv1.tv_usec); in main()
/third_party/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_toplevel_clnt_call/
Dtirpc_toplevel_clnt_call_performance.c93 struct timeval tv1, tv2; in main() local
121 gettimeofday(&tv1, &tz); in main()
133 (tv2.tv_sec - tv1.tv_sec) * 1000000L + (tv2.tv_usec - in main()
134 tv1.tv_usec); in main()
/third_party/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_createdestroy_clntudp_create/
Drpc_clntudp_create_performance.c95 struct timeval tv1, tv2; in main() local
125 gettimeofday(&tv1, &tz); in main()
137 (tv2.tv_sec - tv1.tv_sec) * 1000000L + (tv2.tv_usec - in main()
138 tv1.tv_usec); in main()
/third_party/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_interlevel_clnt_call/
Dtirpc_interlevel_clnt_call_performance.c93 struct timeval tv1, tv2; in main() local
130 gettimeofday(&tv1, &tz); in main()
142 (tv2.tv_sec - tv1.tv_sec) * 1000000L + (tv2.tv_usec - in main()
143 tv1.tv_usec); in main()
/third_party/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_expertlevel_rpcb_rmtcall/
Dtirpc_rpcb_rmtcall_performance.c96 struct timeval tv1, tv2; in main() local
140 gettimeofday(&tv1, &tz); in main()
153 (tv2.tv_sec - tv1.tv_sec) * 1000000L + (tv2.tv_usec - in main()
154 tv1.tv_usec); in main()
/third_party/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_addrmanagmt_pmap_rmtcall/
Drpc_pmap_rmtcall_performance.c98 struct timeval tv1, tv2; in main() local
130 gettimeofday(&tv1, &tz); in main()
143 (tv2.tv_sec - tv1.tv_sec) * 1000000L + (tv2.tv_usec - in main()
144 tv1.tv_usec); in main()
/third_party/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_expertlevel_clnt_call/
Dtirpc_expertlevel_clnt_call_performance.c96 struct timeval tv1, tv2; in main() local
153 gettimeofday(&tv1, &tz); in main()
165 (tv2.tv_sec - tv1.tv_sec) * 1000000L + (tv2.tv_usec - in main()
166 tv1.tv_usec); in main()

12