Home
last modified time | relevance | path

Searched refs:time1 (Results 1 – 25 of 49) 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/python/pybind11/tests/
Dtest_chrono.py105 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/
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/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigtimedwait/
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()
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()
/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 …]
Dhorver_correlation_test.cc96 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()
Dpickrst_test.cc114 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()
Dav1_nn_predict_test.cc163 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/
Dextended_reports_unittest.cc34 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/
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/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/mesa3d/src/mesa/drivers/dri/i965/
Dbrw_queryobj.c57 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/
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/chromium-trace/catapult/common/lab/
Dcommits.py84 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/
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/OpenCL-CTS/test_conformance/compiler/
Dtest_compile.cpp230 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 …]

12