Home
last modified time | relevance | path

Searched refs:tv2 (Results 1 - 25 of 41) sorted by relevance

12

/third_party/toybox/toys/net/
H A Dsntp.c72 struct timespec tv, tv2; in sntp_main() local
181 lunchtime(&tv2, diff); in sntp_main()
182 diff = nanodiff(&tv, &tv2); in sntp_main()
188 // we sent the packet at, tv2 is what server replied, so now diff in sntp_main()
193 doublyso(SWAP_BE64(pktime[5]), &tv2); in sntp_main() local
194 diff = nanodiff(&tv, &tv2); in sntp_main()
198 clock_gettime(CLOCK_REALTIME, &tv2); in sntp_main()
199 nanomove(&tv2, diff); in sntp_main()
200 if (clock_settime(CLOCK_REALTIME, &tv2)) in sntp_main()
207 memset(&tv2, in sntp_main()
[all...]
/third_party/ltp/testcases/kernel/syscalls/gettimeofday/
H A Dgettimeofday02.c36 struct __kernel_old_timeval tv1, tv2; in verify_gettimeofday() local
48 if (tst_syscall(__NR_gettimeofday, &tv2, 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()
56 (intmax_t) tv2.tv_sec, (intmax_t) tv2.tv_usec); in verify_gettimeofday()
60 tv1 = tv2; in verify_gettimeofday()
/third_party/ltp/testcases/kernel/syscalls/settimeofday/
H A Dsettimeofday01.c22 struct timeval tv1, tv2; in verify_settimeofday() local
38 if (gettimeofday(&tv2, NULL) == -1) in verify_settimeofday()
39 tst_brk(TBROK | TERRNO, "gettimeofday(&tv2, NULL) failed"); 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()
47 (suseconds_t) (tv1.tv_sec - tv2.tv_sec) * 1000 + in verify_settimeofday()
48 (tv1.tv_usec - tv2.tv_usec) / 1000; in verify_settimeofday()
/third_party/toybox/toys/posix/
H A Dtime.c30 struct timeval tv, tv2; in time_main() local
40 gettimeofday(&tv2, NULL); in time_main()
41 if (tv.tv_usec > tv2.tv_usec) { in time_main()
42 tv2.tv_usec += 1000000; in time_main()
43 tv2.tv_sec--; in time_main()
45 r = (tv2.tv_sec-tv.tv_sec)+((tv2.tv_usec-tv.tv_usec)/1000000.0); in time_main()
/third_party/node/test/wasi/c/
H A Dgettimeofday.c7 struct timeval tv2; in main() local
21 r = gettimeofday(&tv2, NULL); in main()
23 s2 = tv2.tv_sec; in main()
24 us2 = tv2.tv_usec; in main()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/Support/
H A 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) { in operator +() argument
372 TimeValue sum (tv1.seconds_ + tv2.seconds_, tv1.nanos_ + tv2.nanos_); in operator +()
377 inline TimeValue operator - (const TimeValue &tv1, const TimeValue &tv2) { in operator -() argument
378 TimeValue difference (tv1.seconds_ - tv2.seconds_, tv1.nanos_ - tv2.nanos_ ); in operator -()
/third_party/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_stdcall_callrpc/
H A Drpc_callrpc_performance.c93 struct timeval tv1, tv2; in main() local
120 gettimeofday(&tv2, &tz); in main()
124 (tv2.tv_sec - tv1.tv_sec) * 1000000L + (tv2.tv_usec - in main()
H A Drpc_callrpc_scalability.c93 struct timeval tv1, tv2; in main() local
120 gettimeofday(&tv2, &tz); in main()
124 (tv2.tv_sec - tv1.tv_sec) * 1000000L + (tv2.tv_usec - in main()
/third_party/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_simple_rpc_broadcast/
H A Dtirpc_rpc_broadcast_performance.c99 struct timeval tv1, tv2; in main() local
125 gettimeofday(&tv2, &tz); in main()
129 (tv2.tv_sec - tv1.tv_sec) * 1000000L + (tv2.tv_usec - in main()
H A Dtirpc_rpc_broadcast_scalability.c99 struct timeval tv1, tv2; in main() local
163 gettimeofday(&tv2, &tz); in main()
167 (tv2.tv_sec - tv1.tv_sec) * 1000000L + (tv2.tv_usec - in main()
/third_party/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_toplevel_clnt_call/
H A Dtirpc_toplevel_clnt_call_performance.c93 struct timeval tv1, tv2; in main() local
129 gettimeofday(&tv2, &tz); in main()
133 (tv2.tv_sec - tv1.tv_sec) * 1000000L + (tv2.tv_usec - in main()
/third_party/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_createdestroy_svcudp_create/
H A Drpc_svcudp_create_performance.c93 struct timeval tv1, tv2; in main() local
115 gettimeofday(&tv2, &tz); in main()
119 (tv2.tv_sec - tv1.tv_sec) * 1000000L + (tv2.tv_usec - in main()
/third_party/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_simple_rpc_broadcast_exp/
H A Dtirpc_rpc_broadcast_exp_performance.c99 struct timeval tv1, tv2; in main() local
126 gettimeofday(&tv2, &tz); in main()
130 (tv2.tv_sec - tv1.tv_sec) * 1000000L + (tv2.tv_usec - in main()
/third_party/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_broadc_clnt_broadcast/
H A Drpc_clnt_broadcast_performance.c95 struct timeval tv1, tv2; in main() local
123 gettimeofday(&tv2, &tz); in main()
127 (tv2.tv_sec - tv1.tv_sec) * 1000000L + (tv2.tv_usec - in main()
H A Drpc_clnt_broadcast_scalability.c95 struct timeval tv1, tv2; in main() local
123 gettimeofday(&tv2, &tz); in main()
127 (tv2.tv_sec - tv1.tv_sec) * 1000000L + (tv2.tv_usec - in main()
/third_party/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_createdestroy_clntraw_create/
H A Drpc_clntraw_create_performance.c93 struct timeval tv1, tv2; in main() local
113 gettimeofday(&tv2, &tz); in main()
117 (tv2.tv_sec - tv1.tv_sec) * 1000000L + (tv2.tv_usec - in main()
/third_party/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_createdestroy_svcraw_create/
H A Drpc_svcraw_create_performance.c93 struct timeval tv1, tv2; in main() local
112 gettimeofday(&tv2, &tz); in main()
116 (tv2.tv_sec - tv1.tv_sec) * 1000000L + (tv2.tv_usec - in main()
/third_party/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_createdestroy_svctcp_create/
H A Drpc_svctcp_create_performance.c93 struct timeval tv1, tv2; in main() local
115 gettimeofday(&tv2, &tz); in main()
119 (tv2.tv_sec - tv1.tv_sec) * 1000000L + (tv2.tv_usec - in main()
/third_party/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_stdcall_clnt_call/
H A Drpc_clnt_call_scalability.c67 struct timeval tv1, tv2; in main() local
105 gettimeofday(&tv2, &tz); in main()
109 (tv2.tv_sec - tv1.tv_sec) * 1000000L + (tv2.tv_usec - in main()
/third_party/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_simple_rpc_call/
H A Dtirpc_rpc_call_performance.c94 struct timeval tv1, tv2; in main() local
126 gettimeofday(&tv2, &tz); in main()
130 (tv2.tv_sec - tv1.tv_sec) * 1000000L + (tv2.tv_usec - in main()
/third_party/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_addrmanagmt_pmap_rmtcall/
H A Drpc_pmap_rmtcall_performance.c98 struct timeval tv1, tv2; in main() local
139 gettimeofday(&tv2, &tz); in main()
143 (tv2.tv_sec - tv1.tv_sec) * 1000000L + (tv2.tv_usec - in main()
/third_party/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_expertlevel_clnt_call/
H A Dtirpc_expertlevel_clnt_call_performance.c96 struct timeval tv1, tv2; in main() local
161 gettimeofday(&tv2, &tz); in main()
165 (tv2.tv_sec - tv1.tv_sec) * 1000000L + (tv2.tv_usec - in main()
/third_party/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_bottomlevel_clnt_call/
H A Dtirpc_bottomlevel_clnt_call_performance.c96 struct timeval tv1, tv2; in main() local
161 gettimeofday(&tv2, &tz); in main()
165 (tv2.tv_sec - tv1.tv_sec) * 1000000L + (tv2.tv_usec - in main()
/third_party/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_expertlevel_rpcb_rmtcall/
H A Dtirpc_rpcb_rmtcall_scalability.c125 struct timeval tv1, tv2; in main() local
189 gettimeofday(&tv2, &tz); in main()
193 (tv2.tv_sec - tv1.tv_sec) * 1000000L + (tv2.tv_usec - in main()
H A Dtirpc_rpcb_rmtcall_performance.c96 struct timeval tv1, tv2; in main() local
149 gettimeofday(&tv2, &tz); in main()
153 (tv2.tv_sec - tv1.tv_sec) * 1000000L + (tv2.tv_usec - in main()

Completed in 11 milliseconds

12