/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/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/u-boot/drivers/rtc/ |
D | ds1374.c | 86 unsigned long time1, time2; in rtc_get() local 99 time1 = 0; in rtc_get() 102 time1 = (time1 << 8) | (tmp & 0xff); in rtc_get() 111 } while ((time1 != time2) && limit--); in rtc_get() 113 if (time1 != time2) { in rtc_get() 118 DEBUGR ("Get RTC s since 1.1.1970: %ld\n", time1); in rtc_get() 120 rtc_to_tm(time1, tm); /* To Gregorian Date */ in rtc_get()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigtimedwait/ |
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()
|
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()
|
/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 | masked_sad_test.cc | 84 const double time1 = static_cast<double>(aom_usec_timer_elapsed(&timer)); in runMaskedSADTest() local 101 printf("%7.2f/%7.2fns", time1, time2); in runMaskedSADTest() 102 printf("(%3.2f)\n", time1 / time2); in runMaskedSADTest() 175 const double time1 = static_cast<double>(aom_usec_timer_elapsed(&timer)); in runHighbdMaskedSADTest() local 192 printf("%7.2f/%7.2fns", time1, time2); in runHighbdMaskedSADTest() 193 printf("(%3.2f)\n", time1 / time2); in runHighbdMaskedSADTest()
|
D | horver_correlation_test.cc | 94 const double time1 = static_cast<double>(aom_usec_timer_elapsed(&timer)); in RunHorverSpeedTest() local 102 printf("%3dx%-3d:%7.2f/%7.2fns (%3.2f)\n", w, h, time1, time2, in RunHorverSpeedTest() 103 time1 / time2); in RunHorverSpeedTest()
|
D | pickrst_test.cc | 113 const double time1 = static_cast<double>(aom_usec_timer_elapsed(&timer)); in RunPixelProjErrorTest() local 124 params.r[1], h_end, v_end, time1, time2, time1 / time2); in RunPixelProjErrorTest() 278 const double time1 = static_cast<double>(aom_usec_timer_elapsed(&timer)); in RunPixelProjErrorTest() local 289 params.r[1], h_end, v_end, time1, time2, time1 / time2); in RunPixelProjErrorTest()
|
D | av1_nn_predict_test.cc | 161 const double time1 = static_cast<double>(aom_usec_timer_elapsed(&timer)); in RunNnPredictSpeedTest() local 174 printf("%7.2f/%7.2fns (%3.2f)\n", time1, time2, time1 / time2); in RunNnPredictSpeedTest()
|
/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/mesa3d/src/mesa/drivers/dri/i965/ |
D | brw_queryobj.c | 65 brw_raw_timestamp_delta(struct brw_context *brw, uint64_t time0, uint64_t time1) in brw_raw_timestamp_delta() argument 71 return (uint32_t)time1 - (uint32_t)time0; in brw_raw_timestamp_delta() 73 if (time0 > time1) { in brw_raw_timestamp_delta() 74 return (1ULL << 36) + time1 - time0; in brw_raw_timestamp_delta() 76 return time1 - time0; in brw_raw_timestamp_delta()
|
/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/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/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/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/ltp/testcases/cve/ |
D | meltdown.c | 148 unsigned long long time1, time2; in get_access_time() local 151 rdtscll(time1); in get_access_time() 158 return time2 - time1; in get_access_time()
|