/third_party/ltp/testcases/kernel/syscalls/settimeofday/ |
D | settimeofday01.c | 24 struct timeval tv1, tv2; in verify_settimeofday() local 26 if (tst_syscall(__NR_gettimeofday, &tv1, NULL) == -1) in verify_settimeofday() 29 tv1.tv_sec += VAL_SEC; in verify_settimeofday() 30 tv1.tv_usec += VAL_MSEC; in verify_settimeofday() 31 if (tv1.tv_usec >= USEC_PER_SEC) in verify_settimeofday() 32 tv1.tv_usec = VAL_MSEC; in verify_settimeofday() 34 TEST(settimeofday(&tv1, NULL)); in verify_settimeofday() 43 if (tv2.tv_sec > tv1.tv_sec) { in verify_settimeofday() 45 (suseconds_t) (tv2.tv_sec - tv1.tv_sec) * 1000 + in verify_settimeofday() 46 (tv2.tv_usec - tv1.tv_usec) / 1000; in verify_settimeofday() [all …]
|
/third_party/ltp/testcases/kernel/syscalls/gettimeofday/ |
D | gettimeofday02.c | 42 struct timeval tv1, tv2; in verify_gettimeofday() local 49 if (tst_syscall(__NR_gettimeofday, &tv1, NULL)) in verify_gettimeofday() 56 if (tv2.tv_sec < tv1.tv_sec || in verify_gettimeofday() 57 (tv2.tv_sec == tv1.tv_sec && tv2.tv_usec < tv1.tv_usec)) { in verify_gettimeofday() 60 (intmax_t) tv1.tv_sec, (intmax_t) tv1.tv_usec, in verify_gettimeofday() 65 tv1 = tv2; in verify_gettimeofday()
|
/third_party/node/test/wasi/c/ |
D | gettimeofday.c | 6 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/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/Support/ |
D | 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_ );
|
/third_party/boost/libs/msm/doc/HTML/examples/ |
D | MsmSimple.cpp | 144 long mtime(struct timeval& tv1,struct timeval& tv2) in mtime() argument 146 return (tv2.tv_sec-tv1.tv_sec) *1000000 + ((tv2.tv_usec-tv1.tv_usec)); in mtime() 159 struct timeval tv1,tv2; in main() 160 gettimeofday(&tv1,NULL); in main() 169 gettimeofday(&tv1,NULL); in main() 195 std::cout << "msm took in us:" << mtime(tv1,tv2) <<"\n" <<std::endl; in main()
|
D | EumlSimple.cpp | 167 long mtime(struct timeval& tv1,struct timeval& tv2) in mtime() argument 169 return (tv2.tv_sec-tv1.tv_sec) *1000000 + ((tv2.tv_usec-tv1.tv_usec)); in mtime() 182 struct timeval tv1,tv2; in main() 183 gettimeofday(&tv1,NULL); in main() 192 gettimeofday(&tv1,NULL); in main() 218 std::cout << "msm took in us:" << mtime(tv1,tv2) <<"\n" <<std::endl; in main()
|
D | ParsingDigits.cpp | 257 long mtime(struct timeval& tv1,struct timeval& tv2) in mtime() argument 259 return (tv2.tv_sec-tv1.tv_sec) *1000000 + ((tv2.tv_usec-tv1.tv_usec)); in mtime() 375 struct timeval tv1,tv2; in main() 376 gettimeofday(&tv1,NULL); in main() 387 gettimeofday(&tv1,NULL); in main() 447 std::cout << "msm(1) took in us:" << mtime(tv1,tv2) <<"\n" <<std::endl; in main() 455 gettimeofday(&tv1,NULL); in main() 474 std::cout << "msm(2) took in us:" << mtime(tv1,tv2) <<"\n" <<std::endl; in main()
|
D | SCSimple.cpp | 120 long mtime(struct timeval& tv1,struct timeval& tv2) in mtime() argument 122 return (tv2.tv_sec-tv1.tv_sec) *1000000 + ((tv2.tv_usec-tv1.tv_usec)); in mtime() 138 struct timeval tv1,tv2; in main() local 139 gettimeofday(&tv1,NULL); in main() 165 std::cout << "sc took in us:" << mtime(tv1,tv2) <<"\n" <<std::endl; in main()
|
D | MsmSimpleFunctors.cpp | 200 long mtime(struct timeval& tv1,struct timeval& tv2) in mtime() argument 202 return (tv2.tv_sec-tv1.tv_sec) *1000000 + ((tv2.tv_usec-tv1.tv_usec)); in mtime() 215 struct timeval tv1,tv2; in main() 216 gettimeofday(&tv1,NULL); in main() 224 gettimeofday(&tv1,NULL); in main() 250 std::cout << "msm took in us:" << mtime(tv1,tv2) <<"\n" <<std::endl; in main()
|
/third_party/boost/libs/msm/doc/PDF/examples/ |
D | MsmSimple.cpp | 144 long mtime(struct timeval& tv1,struct timeval& tv2) in mtime() argument 146 return (tv2.tv_sec-tv1.tv_sec) *1000000 + ((tv2.tv_usec-tv1.tv_usec)); in mtime() 159 struct timeval tv1,tv2; in main() 160 gettimeofday(&tv1,NULL); in main() 169 gettimeofday(&tv1,NULL); in main() 195 std::cout << "msm took in us:" << mtime(tv1,tv2) <<"\n" <<std::endl; in main()
|
D | EumlSimple.cpp | 167 long mtime(struct timeval& tv1,struct timeval& tv2) in mtime() argument 169 return (tv2.tv_sec-tv1.tv_sec) *1000000 + ((tv2.tv_usec-tv1.tv_usec)); in mtime() 182 struct timeval tv1,tv2; in main() 183 gettimeofday(&tv1,NULL); in main() 192 gettimeofday(&tv1,NULL); in main() 218 std::cout << "msm took in us:" << mtime(tv1,tv2) <<"\n" <<std::endl; in main()
|
D | ParsingDigits.cpp | 257 long mtime(struct timeval& tv1,struct timeval& tv2) in mtime() argument 259 return (tv2.tv_sec-tv1.tv_sec) *1000000 + ((tv2.tv_usec-tv1.tv_usec)); in mtime() 375 struct timeval tv1,tv2; in main() 376 gettimeofday(&tv1,NULL); in main() 387 gettimeofday(&tv1,NULL); in main() 447 std::cout << "msm(1) took in us:" << mtime(tv1,tv2) <<"\n" <<std::endl; in main() 455 gettimeofday(&tv1,NULL); in main() 474 std::cout << "msm(2) took in us:" << mtime(tv1,tv2) <<"\n" <<std::endl; in main()
|
D | SCSimple.cpp | 120 long mtime(struct timeval& tv1,struct timeval& tv2) in mtime() argument 122 return (tv2.tv_sec-tv1.tv_sec) *1000000 + ((tv2.tv_usec-tv1.tv_usec)); in mtime() 138 struct timeval tv1,tv2; in main() local 139 gettimeofday(&tv1,NULL); in main() 165 std::cout << "sc took in us:" << mtime(tv1,tv2) <<"\n" <<std::endl; in main()
|
D | MsmSimpleFunctors.cpp | 200 long mtime(struct timeval& tv1,struct timeval& tv2) in mtime() argument 202 return (tv2.tv_sec-tv1.tv_sec) *1000000 + ((tv2.tv_usec-tv1.tv_usec)); in mtime() 215 struct timeval tv1,tv2; in main() 216 gettimeofday(&tv1,NULL); in main() 224 gettimeofday(&tv1,NULL); in main() 250 std::cout << "msm took in us:" << mtime(tv1,tv2) <<"\n" <<std::endl; in main()
|
/third_party/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_stdcall_clnt_call/ |
D | rpc_clnt_call_scalability.c | 67 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()
|
/third_party/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_createdestroy_svctcp_create/ |
D | rpc_svctcp_create_performance.c | 93 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/ |
D | rpc_svcraw_create_performance.c | 93 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_svcudp_create/ |
D | rpc_svcudp_create_performance.c | 93 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/ |
D | rpc_clntraw_create_performance.c | 93 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()
|
/third_party/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_stdcall_callrpc/ |
D | rpc_callrpc_scalability.c | 93 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()
|
D | rpc_callrpc_performance.c | 93 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/ |
D | tirpc_rpc_broadcast_performance.c | 99 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/ |
D | rpc_clnt_broadcast_scalability.c | 95 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()
|
D | rpc_clnt_broadcast_performance.c | 95 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/ |
D | tirpc_rpc_broadcast_exp_performance.c | 99 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()
|