Home
last modified time | relevance | path

Searched refs:time1 (Results 1 – 25 of 38) sorted by relevance

12

/external/iperf3/src/
Diperf_time.c39 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 …]
Diperf_time.h37 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);
Diperf_util.c178 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/
Dtest-cmpxchg-nolock.c48 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/
DStressTest.java43 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()
DStressEmitterTest.java41 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()
DParallelTest.java59 long time1 = System.nanoTime(); in run() local
66 float duration = ((time2 - time1) / 1000000) / (float) cycles; in run()
/external/u-boot/drivers/rtc/
Dds1374.c86 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/
D1-1.c60 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()
D2-1.c61 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/
Dlftest.c48 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/
Dblend_a64_mask_test.cc176 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 …]
Dmasked_sad_test.cc84 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()
Dhorver_correlation_test.cc94 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()
Dpickrst_test.cc113 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()
Dav1_nn_predict_test.cc161 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/
DUpdatePair.cpp17 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/
Dbrw_queryobj.c65 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/
Dgetuid_microbench.c11 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/
DShadowChoreographerTest.java24 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/
DKeepAliveEnforcer.java98 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/
DTimeZoneRuleTest.java756 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/
DTimeZoneRuleTest.java753 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/
Dcommits.py84 for time1, time2 in Pairwise(commit_times):
87 commit_durations.append((time1 - time2).total_seconds() / 60.)
/external/ltp/testcases/cve/
Dmeltdown.c148 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()

12