/external/iperf3/src/ |
D | iperf_time.c | 39 iperf_time_now(struct iperf_time *time1) in iperf_time_now() argument 45 time1->secs = (uint32_t) ts.tv_sec; in iperf_time_now() 46 time1->usecs = (uint32_t) ts.tv_nsec / 1000; in iperf_time_now() 56 iperf_time_now(struct iperf_time *time1) in iperf_time_now() argument 61 time1->secs = tv.tv_sec; in iperf_time_now() 62 time1->usecs = tv.tv_usec; in iperf_time_now() 73 iperf_time_add_usecs(struct iperf_time *time1, uint64_t usecs) in iperf_time_add_usecs() argument 75 time1->secs += usecs / 1000000L; in iperf_time_add_usecs() 76 time1->usecs += usecs % 1000000L; in iperf_time_add_usecs() 77 if ( time1->usecs >= 1000000L ) { in iperf_time_add_usecs() [all …]
|
D | iperf_time.h | 37 int iperf_time_now(struct iperf_time *time1); 39 void iperf_time_add_usecs(struct iperf_time *time1, uint64_t usecs); 41 int iperf_time_compare(struct iperf_time *time1, struct iperf_time *time2); 43 int iperf_time_diff(struct iperf_time *time1, struct iperf_time *time2, struct iperf_time *diff);
|
D | iperf_util.c | 178 double time1, time2; in timeval_diff() local 180 time1 = tv0->tv_sec + (tv0->tv_usec / 1000000.0); in timeval_diff() 183 time1 = time1 - time2; in timeval_diff() 184 if (time1 < 0) in timeval_diff() 185 time1 = -time1; in timeval_diff() 186 return time1; in timeval_diff()
|
/external/ltp/testcases/kernel/device-drivers/misc_modules/per_cpu_atomic_operations_vs_interrupt_disabling_module/ |
D | test-cmpxchg-nolock.c | 48 cycles_t time1, time2, time; in do_testbaseline() local 53 time1 = get_cycles(); in do_testbaseline() 60 time = time2 - time1; in do_testbaseline() 75 cycles_t time1, time2, time; in do_test_sync_cmpxchg() local 80 time1 = get_cycles(); in do_test_sync_cmpxchg() 91 time = time2 - time1; in do_test_sync_cmpxchg() 106 cycles_t time1, time2, time; in do_test_cmpxchg() local 111 time1 = get_cycles(); in do_test_cmpxchg() 118 time = time2 - time1; in do_test_cmpxchg() 133 cycles_t time1, time2, time; in do_test_sync_inc() local [all …]
|
/external/python/pybind11/tests/ |
D | test_chrono.py | 105 def test_chrono_system_clock_roundtrip_time(time1, tz, monkeypatch): argument 110 datetime2 = m.test_chrono2(time1) 120 assert time1.hour == time2.hour 121 assert time1.minute == time2.minute 122 assert time1.second == time2.second 123 assert time1.microsecond == time2.microsecond 175 time1 = m.test_chrono5() 176 assert isinstance(time1, datetime.timedelta) 180 time1 = datetime.timedelta(days=10, seconds=10, microseconds=100) 181 time2 = m.test_chrono6(time1) [all …]
|
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/stress/ |
D | StressTest.java | 43 long time1 = System.nanoTime(); in testPerformance() local 46 float duration = (time2 - time1) / 1000000; in testPerformance() 50 time1 = System.nanoTime(); in testPerformance() 53 duration = (time2 - time1) / 1000000; in testPerformance() 60 time1 = System.nanoTime(); in testPerformance() 65 duration = ((time2 - time1) / 1000000) / (float) number; in testPerformance() 76 time1 = System.nanoTime(); in testPerformance() 82 duration = ((time2 - time1) / 1000000) / (float) number; in testPerformance()
|
D | StressEmitterTest.java | 41 long time1 = System.nanoTime(); in testPerformance() local 44 float duration = (time2 - time1) / 1000000; in testPerformance() 50 time1 = System.nanoTime(); in testPerformance() 55 duration = ((time2 - time1) / 1000000) / (float) number; in testPerformance() 65 time1 = System.nanoTime(); in testPerformance() 71 duration = ((time2 - time1) / 1000000) / (float) number; in testPerformance()
|
D | ParallelTest.java | 59 long time1 = System.nanoTime(); in run() local 66 float duration = ((time2 - time1) / 1000000) / (float) cycles; in run()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigtimedwait/ |
D | 2-1.c | 61 struct timeval time1, time2; in main() local 100 if (gettimeofday(&time1, NULL) == -1) { in main() 114 time_elapsed = (time2.tv_sec - time1.tv_sec in main() 115 + (time2.tv_usec - time1.tv_usec) / 1000000.0); in main()
|
D | 1-1.c | 60 struct timeval time1, time2; in main() local 99 if (gettimeofday(&time1, NULL) == -1) { in main() 113 time_elapsed = (time2.tv_sec - time1.tv_sec in main() 114 + (time2.tv_usec - time1.tv_usec) / 1000000.0); in main()
|
/external/ltp/testcases/kernel/fs/lftest/ |
D | lftest.c | 48 time_t time1, time2; in main() local 51 time1 = time(NULL); in main() 59 asctime(localtime(&time1))); in main() 87 diff = time2 - time1; in main()
|
/external/libaom/libaom/test/ |
D | blend_a64_mask_test.cc | 176 const double time1 = static_cast<double>(aom_usec_timer_elapsed(&timer)); in Execute() local 188 time1, time2); in Execute() 189 printf("(%3.2f)\n", time1 / time2); in Execute() 290 const double time1 = static_cast<double>(aom_usec_timer_elapsed(&timer)); in Execute() local 302 time1, time2); in Execute() 303 printf("(%3.2f)\n", time1 / time2); in Execute() 388 const double time1 = static_cast<double>(aom_usec_timer_elapsed(&timer)); in Execute() local 400 time1, time2); in Execute() 401 printf("(%3.2f)\n", time1 / time2); in Execute() 501 const double time1 = static_cast<double>(aom_usec_timer_elapsed(&timer)); in Execute() local [all …]
|
D | horver_correlation_test.cc | 96 const double time1 = static_cast<double>(aom_usec_timer_elapsed(&timer)); in RunHorverSpeedTest() local 104 printf("%3dx%-3d:%7.2f/%7.2fns (%3.2f)\n", w, h, time1, time2, in RunHorverSpeedTest() 105 time1 / time2); in RunHorverSpeedTest()
|
D | pickrst_test.cc | 114 const double time1 = static_cast<double>(aom_usec_timer_elapsed(&timer)); in RunPixelProjErrorTest() local 125 params.r[1], h_end, v_end, time1, time2, time1 / time2); in RunPixelProjErrorTest() 279 const double time1 = static_cast<double>(aom_usec_timer_elapsed(&timer)); in RunPixelProjErrorTest() local 290 params.r[1], h_end, v_end, time1, time2, time1 / time2); in RunPixelProjErrorTest() 452 const double time1 = static_cast<double>(aom_usec_timer_elapsed(&timer)); in RunGetProjSubspaceTest() local 462 params.r[1], h_end, v_end, time1, time2, time1 / time2); in RunGetProjSubspaceTest()
|
D | av1_nn_predict_test.cc | 163 const double time1 = static_cast<double>(aom_usec_timer_elapsed(&timer)); in RunNnPredictSpeedTest() local 176 printf("%7.2f/%7.2fns (%3.2f)\n", time1, time2, time1 / time2); in RunNnPredictSpeedTest()
|
/external/webrtc/modules/rtp_rtcp/source/rtcp_packet/ |
D | extended_reports_unittest.cc | 34 bool operator==(const ReceiveTimeInfo& time1, const ReceiveTimeInfo& time2) { in operator ==() argument 35 return time1.ssrc == time2.ssrc && time1.last_rr == time2.last_rr && in operator ==() 36 time1.delay_since_last_rr == time2.delay_since_last_rr; in operator ==()
|
/external/lzma/CPP/7zip/UI/Common/ |
D | UpdatePair.cpp | 17 static int MyCompareTime(NFileTimeType::EEnum fileTimeType, const FILETIME &time1, const FILETIME &… in MyCompareTime() argument 22 return ::CompareFileTime(&time1, &time2); in MyCompareTime() 26 FileTimeToUnixTime(time1, unixTime1); in MyCompareTime() 33 FileTimeToDosTime(time1, dosTime1); in MyCompareTime()
|
/external/autotest/client/tests/tracing_microbenchmark/src/ |
D | getuid_microbench.c | 11 const struct timespec *time1, const struct timespec *time2) { in ts_subtract() argument 12 *result = *time1; in ts_subtract()
|
/external/mesa3d/src/mesa/drivers/dri/i965/ |
D | brw_queryobj.c | 57 brw_raw_timestamp_delta(struct brw_context *brw, uint64_t time0, uint64_t time1) in brw_raw_timestamp_delta() argument 63 return (uint32_t)time1 - (uint32_t)time0; in brw_raw_timestamp_delta() 65 if (time0 > time1) { in brw_raw_timestamp_delta() 66 return (1ULL << 36) + time1 - time0; in brw_raw_timestamp_delta() 68 return time1 - time0; in brw_raw_timestamp_delta()
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
D | ShadowChoreographerTest.java | 24 long time1 = instance.getFrameTimeNanos(); in setFrameInterval_shouldUpdateFrameInterval() local 27 assertThat(time2 - time1).isEqualTo(frameInterval); in setFrameInterval_shouldUpdateFrameInterval()
|
/external/grpc-grpc-java/netty/src/main/java/io/grpc/netty/ |
D | KeepAliveEnforcer.java | 98 private static long compareNanos(long time1, long time2) { in compareNanos() argument 100 return time1 - time2; in compareNanos()
|
/external/chromium-trace/catapult/common/lab/ |
D | commits.py | 84 for time1, time2 in Pairwise(commit_times): 87 commit_durations.append((time1 - time2).total_seconds() / 60.)
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/timezone/ |
D | TimeZoneRuleTest.java | 756 long time1 = getUTCMillis(2005, Calendar.JULY, 4); in TestTimeZoneRuleCoverage() local 866 d1 = a1.getNextStart(time1, -3*HOUR, 0, false); in TestTimeZoneRuleCoverage() 938 d1 = i1.getNextStart(time1, 0, 0, false); in TestTimeZoneRuleCoverage() 942 d1 = i1.getPreviousStart(time1, 0, 0, false); in TestTimeZoneRuleCoverage() 997 d1 = t3.getNextStart(time1, -3*HOUR, 1*HOUR, false); in TestTimeZoneRuleCoverage() 1001 d1 = t3.getPreviousStart(time1, -3*HOUR, 1*HOUR, false); in TestTimeZoneRuleCoverage() 1075 long time1 = getUTCMillis(1990, Calendar.JUNE, 1); in TestSimpleTimeZoneCoverage() local 1083 tzt1 = stz1.getNextTransition(time1, false); in TestSimpleTimeZoneCoverage() 1087 tzt1 = stz1.getPreviousTransition(time1, false); in TestSimpleTimeZoneCoverage() 1099 tzt1 = stz1.getNextTransition(time1, false); in TestSimpleTimeZoneCoverage() [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timezone/ |
D | TimeZoneRuleTest.java | 753 long time1 = getUTCMillis(2005, Calendar.JULY, 4); in TestTimeZoneRuleCoverage() local 863 d1 = a1.getNextStart(time1, -3*HOUR, 0, false); in TestTimeZoneRuleCoverage() 935 d1 = i1.getNextStart(time1, 0, 0, false); in TestTimeZoneRuleCoverage() 939 d1 = i1.getPreviousStart(time1, 0, 0, false); in TestTimeZoneRuleCoverage() 994 d1 = t3.getNextStart(time1, -3*HOUR, 1*HOUR, false); in TestTimeZoneRuleCoverage() 998 d1 = t3.getPreviousStart(time1, -3*HOUR, 1*HOUR, false); in TestTimeZoneRuleCoverage() 1072 long time1 = getUTCMillis(1990, Calendar.JUNE, 1); in TestSimpleTimeZoneCoverage() local 1080 tzt1 = stz1.getNextTransition(time1, false); in TestSimpleTimeZoneCoverage() 1084 tzt1 = stz1.getPreviousTransition(time1, false); in TestSimpleTimeZoneCoverage() 1096 tzt1 = stz1.getNextTransition(time1, false); in TestSimpleTimeZoneCoverage() [all …]
|
/external/OpenCL-CTS/test_conformance/compiler/ |
D | test_compile.cpp | 230 timeval time1, time2; in test_large_compile() local 231 gettimeofday(&time1, NULL); in test_large_compile() 245 …log_perf( (float)(float)(time2.tv_sec - time1.tv_sec) + 1.0e-6 * (time2.tv_usec - time1.tv_usec) … in test_large_compile() 402 timeval time1, time2; in test_multi_file_libraries() local 403 gettimeofday(&time1, NULL); in test_multi_file_libraries() 417 …log_perf( (float)(float)(time2.tv_sec - time1.tv_sec) + 1.0e-6 * (time2.tv_usec - time1.tv_usec) … in test_multi_file_libraries() 585 timeval time1, time2; in test_multiple_embedded_headers() local 586 gettimeofday(&time1, NULL); in test_multiple_embedded_headers() 600 …log_perf( (float)(float)(time2.tv_sec - time1.tv_sec) + 1.0e-6 * (time2.tv_usec - time1.tv_usec) … in test_multiple_embedded_headers() 755 timeval time1, time2; in test_multiple_libraries() local [all …]
|