/system/extras/tests/schedtest/ |
schedtest.c | 28 struct timeval tv2; local 35 gettimeofday(&tv2, NULL); 37 long usec = (tv2.tv_sec - tv1.tv_sec) * 1000000 + tv2.tv_usec - tv1.tv_usec;
|
/external/ltp/testcases/kernel/syscalls/gettimeofday/ |
gettimeofday02.c | 57 struct timeval tv1, tv2; local 70 if (gettimeofday(&tv2, NULL)) { 75 if (tv2.tv_sec < tv1.tv_sec || 76 (tv2.tv_sec == tv1.tv_sec && tv2.tv_usec < tv1.tv_usec)) { 80 (intmax_t) tv2.tv_sec, (intmax_t) tv2.tv_usec); 84 tv1 = tv2;
|
/external/toybox/toys/posix/ |
time.c | 30 struct timeval tv, tv2; local 40 gettimeofday(&tv2, NULL); 41 if (tv.tv_usec > tv2.tv_usec) { 42 tv2.tv_usec += 1000000; 43 tv2.tv_sec--; 45 r = (tv2.tv_sec-tv.tv_sec)+((tv2.tv_usec-tv.tv_usec)/1000000.0);
|
/external/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_stdcall_clnt_call/ |
rpc_clnt_call_scalability.c | 67 struct timeval tv1, tv2; local 105 gettimeofday(&tv2, &tz); 109 (tv2.tv_sec - tv1.tv_sec) * 1000000L + (tv2.tv_usec -
|
/bionic/tests/ |
sys_time_test.cpp | 138 timeval tv2; local 139 ASSERT_EQ(0, syscall(__NR_gettimeofday, &tv2, NULL)); 142 tv2.tv_sec -= tv1.tv_sec; 143 tv2.tv_usec -= tv1.tv_usec; 144 if (tv2.tv_usec < 0) { 145 --tv2.tv_sec; 146 tv2.tv_usec += 1000000; 150 ASSERT_EQ(0, tv2.tv_sec); 151 ASSERT_LT(tv2.tv_usec, 2000);
|
/external/llvm/include/llvm/Support/ |
TimeValue.h | 192 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_ );
|
/external/swiftshader/third_party/LLVM/include/llvm/Support/ |
TimeValue.h | 183 friend TimeValue operator + (const TimeValue &tv1, const TimeValue &tv2); 188 friend TimeValue operator - (const TimeValue &tv1, const TimeValue &tv2); 367 inline TimeValue operator + (const TimeValue &tv1, const TimeValue &tv2) { 368 TimeValue sum (tv1.seconds_ + tv2.seconds_, tv1.nanos_ + tv2.nanos_); 373 inline TimeValue operator - (const TimeValue &tv1, const TimeValue &tv2) { 374 TimeValue difference (tv1.seconds_ - tv2.seconds_, tv1.nanos_ - tv2.nanos_ );
|
/external/swiftshader/third_party/llvm-subzero/include/llvm/Support/ |
TimeValue.h | 192 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_ );
|
/external/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_broadc_clnt_broadcast/ |
rpc_clnt_broadcast_performance.c | 95 struct timeval tv1, tv2; local 123 gettimeofday(&tv2, &tz); 127 (tv2.tv_sec - tv1.tv_sec) * 1000000L + (tv2.tv_usec -
|
rpc_clnt_broadcast_scalability.c | 95 struct timeval tv1, tv2; local 123 gettimeofday(&tv2, &tz); 127 (tv2.tv_sec - tv1.tv_sec) * 1000000L + (tv2.tv_usec -
|
/external/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_createdestroy_clntraw_create/ |
rpc_clntraw_create_performance.c | 93 struct timeval tv1, tv2; local 113 gettimeofday(&tv2, &tz); 117 (tv2.tv_sec - tv1.tv_sec) * 1000000L + (tv2.tv_usec -
|
rpc_clntraw_create_complex.c | 49 struct timeval tv1, tv2; local 99 gettimeofday(&tv2, &tz); 101 (tv2.tv_sec - tv1.tv_sec) * 1000000L + 102 (tv2.tv_usec - tv1.tv_usec);
|
/external/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_createdestroy_svcraw_create/ |
rpc_svcraw_create_performance.c | 93 struct timeval tv1, tv2; local 112 gettimeofday(&tv2, &tz); 116 (tv2.tv_sec - tv1.tv_sec) * 1000000L + (tv2.tv_usec -
|
/external/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_createdestroy_svctcp_create/ |
rpc_svctcp_create_performance.c | 93 struct timeval tv1, tv2; local 115 gettimeofday(&tv2, &tz); 119 (tv2.tv_sec - tv1.tv_sec) * 1000000L + (tv2.tv_usec -
|
/external/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_createdestroy_svcudp_create/ |
rpc_svcudp_create_performance.c | 93 struct timeval tv1, tv2; local 115 gettimeofday(&tv2, &tz); 119 (tv2.tv_sec - tv1.tv_sec) * 1000000L + (tv2.tv_usec -
|
/external/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_stdcall_callrpc/ |
rpc_callrpc_performance.c | 93 struct timeval tv1, tv2; local 120 gettimeofday(&tv2, &tz); 124 (tv2.tv_sec - tv1.tv_sec) * 1000000L + (tv2.tv_usec -
|
rpc_callrpc_scalability.c | 93 struct timeval tv1, tv2; local 120 gettimeofday(&tv2, &tz); 124 (tv2.tv_sec - tv1.tv_sec) * 1000000L + (tv2.tv_usec -
|
/external/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_simple_rpc_broadcast/ |
tirpc_rpc_broadcast_performance.c | 99 struct timeval tv1, tv2; local 125 gettimeofday(&tv2, &tz); 129 (tv2.tv_sec - tv1.tv_sec) * 1000000L + (tv2.tv_usec -
|
/external/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_simple_rpc_broadcast_exp/ |
tirpc_rpc_broadcast_exp_performance.c | 99 struct timeval tv1, tv2; local 126 gettimeofday(&tv2, &tz); 130 (tv2.tv_sec - tv1.tv_sec) * 1000000L + (tv2.tv_usec -
|
/external/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_simple_rpc_call/ |
tirpc_rpc_call_performance.c | 93 struct timeval tv1, tv2; local 125 gettimeofday(&tv2, &tz); 129 (tv2.tv_sec - tv1.tv_sec) * 1000000L + (tv2.tv_usec -
|
/external/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_toplevel_clnt_call/ |
tirpc_toplevel_clnt_call_performance.c | 93 struct timeval tv1, tv2; local 129 gettimeofday(&tv2, &tz); 133 (tv2.tv_sec - tv1.tv_sec) * 1000000L + (tv2.tv_usec -
|
/cts/tests/tests/widget/src/android/widget/cts/ |
TextSwitcherTest.java | 81 TextView tv2 = new TextView(mActivity); local 83 tv2.setText(viewText2); 85 mTextSwitcher.addView(tv2, 1, new ViewGroup.LayoutParams(PARAMS_WIDTH, PARAMS_HEIGHT)); 97 assertSame(tv2, mTextSwitcher.getCurrentView()); 109 assertSame(tv2, mTextSwitcher.getCurrentView()); 121 TextView tv2 = new TextView(mActivity); local 123 tv2.setText(viewText2); 125 mTextSwitcher.addView(tv2, 1, new ViewGroup.LayoutParams(PARAMS_WIDTH, PARAMS_HEIGHT)); 156 TextView tv2 = new TextView(mActivity); local 171 mTextSwitcher.addView(tv2, Integer.MAX_VALUE [all...] |
/external/libevent/test/ |
regress.h | 120 #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)
|
/external/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_addrmanagmt_pmap_rmtcall/ |
rpc_pmap_rmtcall_performance.c | 98 struct timeval tv1, tv2; local 139 gettimeofday(&tv2, &tz); 143 (tv2.tv_sec - tv1.tv_sec) * 1000000L + (tv2.tv_usec -
|
/external/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_createdestroy_clnttcp_create/ |
rpc_clnttcp_create_performance.c | 95 struct timeval tv1, tv2; local 132 gettimeofday(&tv2, &tz); 136 (tv2.tv_sec - tv1.tv_sec) * 1000000L + (tv2.tv_usec -
|