/third_party/ltp/testcases/kernel/device-drivers/misc_modules/per_cpu_atomic_operations_vs_interrupt_disabling_module/ |
H A 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, time in do_test_sync_inc() local 161 cycles_t time1, time2, time; do_test_inc() local 191 cycles_t time1, time2, time; do_test_enable_int() local 218 cycles_t time1, time2, time; do_test_disable_int() local 246 cycles_t time1, time2, time; do_test_int() local [all...] |
/third_party/tzdata/ |
H A D | difftime.c | 20 difftime(time_t time1, time_t time0) in difftime() argument 27 double t1 = time1, t0 = time0; in difftime() 36 return time0 <= time1 ? time1 - time0 : dminus(time0 - time1); in difftime() 40 uintmax_t t1 = time1, t0 = time0; in difftime() 41 return time0 <= time1 ? t1 - t0 : dminus(t0 - t1); in difftime() 45 ** Handle cases where both time1 and time0 have the same sign in difftime() 48 if ((time1 < 0) == (time0 < 0)) in difftime() 49 return time1 in difftime() [all...] |
H A D | localtime.c | 2180 time1(struct tm *const tmp, in time1() function 2255 return time1(tmp, localsub, sp, setname); in mktime_tzname() 2258 return time1(tmp, gmtsub, gmtptr, 0); in mktime_tzname() 2314 return time1(tmp, gmtsub, gmtptr, offset); in timeoff()
|
/third_party/ltp/testcases/kernel/syscalls/prctl/ |
H A D | prctl10.c | 69 unsigned long long time1, time2; in verify_prctl() local 84 time1 = rdtsc(); in verify_prctl() 86 if (time2 > time1) in verify_prctl() 88 time1, time2); in verify_prctl() 91 time1, time2); in verify_prctl()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigtimedwait/ |
H A D | 1-1.c | 24 3. Obtain time1. 26 5. Obtain time2, and find the difference between time2 and time1. 27 6. Verify that (time2-time1) is equal to SIGTIMEDWAITSEC within a reasonable 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()
|
H A D | 2-1.c | 24 3. Obtain time1. 27 5. Obtain time2, and find the difference between time2 and time1. 28 6. Verify that (time2-time1) is equal to SIGTIMEDWAITSEC within a reasonable 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()
|
/third_party/musl/libc-test/src/functionalext/supplement/time/time_gtest/ |
H A D | time_test.cpp | 24 clock_t time1 = clock(); in HWTEST_F() local 26 EXPECT_GT(5 * (CLOCKS_PER_SEC / 1000), time1 - time0); in HWTEST_F() 38 time_t time1; in HWTEST_F() local 39 time_t p1 = time(&time1); in HWTEST_F() 40 EXPECT_NE(0, static_cast<int>(time1)); in HWTEST_F() 41 EXPECT_NE(-1, static_cast<int>(time1)); in HWTEST_F() 42 EXPECT_EQ(time1, p1); in HWTEST_F() 52 EXPECT_GT(2, static_cast<int>(time2 - time1)); in HWTEST_F() 468 time_t time1 = time(nullptr); in HWTEST_F() local 469 EXPECT_LE(static_cast<int>(1), time1 in HWTEST_F() [all...] |
H A D | sys_clock_test.cpp | 320 auto time1 = std::chrono::steady_clock::now(); in HWTEST_F() local 321 EXPECT_GE(std::chrono::duration_cast<std::chrono::nanoseconds>(time1 - time0).count(), 5000000); in HWTEST_F()
|
/third_party/ltp/testcases/kernel/fs/lftest/ |
H A D | lftest.c | 44 time_t time1, time2; in run() local 47 time1 = time(NULL); in run() 64 diff = time2 - time1; in run()
|
/third_party/ltp/testcases/cve/ |
H A D | meltdown.c | 134 unsigned long long time1, time2; in get_access_time() local 137 rdtscll(time1); in get_access_time() 144 return time2 - time1; in get_access_time()
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/timezone/ |
H A D | TimeZoneRuleTest.java | 756 long time1 = getUTCMillis(2005, Calendar.JULY, 4); in TestTimeZoneRuleCoverage() 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() 1083 tzt1 = stz1.getNextTransition(time1, false); in TestSimpleTimeZoneCoverage() 1087 tzt1 = stz1.getPreviousTransition(time1, false); in TestSimpleTimeZoneCoverage() 1099 tzt1 = stz1.getNextTransition(time1, fals in TestSimpleTimeZoneCoverage() [all...] |
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timezone/ |
H A D | TimeZoneRuleTest.java | 754 long time1 = getUTCMillis(2005, Calendar.JULY, 4); in TestTimeZoneRuleCoverage() 864 d1 = a1.getNextStart(time1, -3*HOUR, 0, false); in TestTimeZoneRuleCoverage() 936 d1 = i1.getNextStart(time1, 0, 0, false); in TestTimeZoneRuleCoverage() 940 d1 = i1.getPreviousStart(time1, 0, 0, false); in TestTimeZoneRuleCoverage() 995 d1 = t3.getNextStart(time1, -3*HOUR, 1*HOUR, false); in TestTimeZoneRuleCoverage() 999 d1 = t3.getPreviousStart(time1, -3*HOUR, 1*HOUR, false); in TestTimeZoneRuleCoverage() 1073 long time1 = getUTCMillis(1990, Calendar.JUNE, 1); in TestSimpleTimeZoneCoverage() 1081 tzt1 = stz1.getNextTransition(time1, false); in TestSimpleTimeZoneCoverage() 1085 tzt1 = stz1.getPreviousTransition(time1, false); in TestSimpleTimeZoneCoverage() 1097 tzt1 = stz1.getNextTransition(time1, fals in TestSimpleTimeZoneCoverage() [all...] |
/third_party/mesa3d/src/intel/common/ |
H A D | intel_measure.c | 373 raw_timestamp_delta(uint64_t time0, uint64_t time1) in raw_timestamp_delta() argument 375 if (time0 > time1) { in raw_timestamp_delta() 376 return (1ULL << TIMESTAMP_BITS) + time1 - time0; in raw_timestamp_delta() 378 return time1 - time0; in raw_timestamp_delta()
|
/third_party/icu/icu4c/source/test/intltest/ |
H A D | tzrulets.cpp | 1203 UDate time1 = getUTCMillis(2005, UCAL_JULY, 4); in TestTimeZoneRuleCoverage() local 1319 b1 = a1->getNextStart(time1, -3*HOUR, 0, false, d1); in TestTimeZoneRuleCoverage() 1387 b1 = i1->getNextStart(time1, 0, 0, false, d1); in TestTimeZoneRuleCoverage() 1391 b1 = i1->getPreviousStart(time1, 0, 0, false, d1); in TestTimeZoneRuleCoverage() 1460 b1 = t3->getNextStart(time1, -3*HOUR, 1*HOUR, false, d1); in TestTimeZoneRuleCoverage() 1464 b1 = t3->getPreviousStart(time1, -3*HOUR, 1*HOUR, false, d1); in TestTimeZoneRuleCoverage() 1514 UDate time1 = getUTCMillis(1990, UCAL_JUNE, 1); in TestSimpleTimeZoneCoverage() local 1527 avail1 = stz1->getNextTransition(time1, false, tzt1); in TestSimpleTimeZoneCoverage() 1531 avail1 = stz1->getPreviousTransition(time1, false, tzt1); in TestSimpleTimeZoneCoverage() 1562 avail1 = stz1->getNextTransition(time1, fals in TestSimpleTimeZoneCoverage() 1751 UDate time1 = getUTCMillis(1950, UCAL_JANUARY, 1); TestVTimeZoneCoverage() local [all...] |
/third_party/mesa3d/src/gallium/drivers/iris/ |
H A D | iris_query.c | 271 iris_raw_timestamp_delta(uint64_t time0, uint64_t time1) in iris_raw_timestamp_delta() argument 273 if (time0 > time1) { in iris_raw_timestamp_delta() 274 return (1ULL << TIMESTAMP_BITS) + time1 - time0; in iris_raw_timestamp_delta() 276 return time1 - time0; in iris_raw_timestamp_delta()
|
/third_party/mesa3d/src/gallium/drivers/crocus/ |
H A D | crocus_query.c | 299 crocus_raw_timestamp_delta(uint64_t time0, uint64_t time1) in crocus_raw_timestamp_delta() argument 301 if (time0 > time1) { in crocus_raw_timestamp_delta() 302 return (1ULL << TIMESTAMP_BITS) + time1 - time0; in crocus_raw_timestamp_delta() 304 return time1 - time0; in crocus_raw_timestamp_delta()
|
/third_party/skia/third_party/externals/spirv-tools/test/val/ |
H A D | val_misc_test.cpp | 101 OpName %time1 "time1" 114 %time1 = OpVariable %_ptr_Function_uint Function in TEST_F() 116 OpStore %time1 %11 in TEST_F() 136 %time1 = OpVariable %_ptr_Function_v2uint Function in TEST_F() 138 OpStore %time1 %15 in TEST_F() 157 %time1 = OpVariable %_ptr_Function_ulong Function in TEST_F() 159 OpStore %time1 %11 in TEST_F() 178 %time1 = OpVariable %_ptr_Function_ulong Function in TEST_F() 180 OpStore %time1 in TEST_F() [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/val/ |
H A D | val_misc_test.cpp | 101 OpName %time1 "time1" 114 %time1 = OpVariable %_ptr_Function_uint Function in TEST_F() 116 OpStore %time1 %11 in TEST_F() 136 %time1 = OpVariable %_ptr_Function_v2uint Function in TEST_F() 138 OpStore %time1 %15 in TEST_F() 157 %time1 = OpVariable %_ptr_Function_ulong Function in TEST_F() 159 OpStore %time1 %11 in TEST_F() 178 %time1 = OpVariable %_ptr_Function_ulong Function in TEST_F() 180 OpStore %time1 in TEST_F() [all...] |
/third_party/spirv-tools/test/val/ |
H A D | val_misc_test.cpp | 101 OpName %time1 "time1" 114 %time1 = OpVariable %_ptr_Function_uint Function in TEST_F() 116 OpStore %time1 %11 in TEST_F() 136 %time1 = OpVariable %_ptr_Function_v2uint Function in TEST_F() 138 OpStore %time1 %15 in TEST_F() 157 %time1 = OpVariable %_ptr_Function_ulong Function in TEST_F() 159 OpStore %time1 %11 in TEST_F() 178 %time1 = OpVariable %_ptr_Function_ulong Function in TEST_F() 180 OpStore %time1 in TEST_F() [all...] |
/third_party/backends/backend/ |
H A D | canon.h | 304 time_t time1; /* modification for FB620S */ member
|
/third_party/skia/third_party/externals/dng_sdk/source/ |
H A D | dng_date_time.cpp | 872 uint64 time1 = (((uint64) localFT.dwHighDateTime) << 32) + localFT.dwLowDateTime; in LocalTimeZone() local 877 int64 time1Sec = time1 / 10000000; in LocalTimeZone()
|
/third_party/alsa-utils/speaker-test/ |
H A D | speaker-test.c | 1019 double time1,time2,time3; in main() local 1287 time1 = (double)tv1.tv_sec + ((double)tv1.tv_usec / 1000000.0); in main() 1289 time3 = time2 - time1; in main()
|
/third_party/icu/icu4c/source/tools/tzcode/ |
H A D | localtime.c | 160 static time_t time1(struct tm * tmp, 1862 time1(struct tm *const tmp, in time1() function 1937 return time1(tmp, localsub, 0L); in mktime() 1955 return time1(tmp, gmtsub, 0L); in timegm() 1963 return time1(tmp, gmtsub, offset); in timeoff()
|
/third_party/skia/third_party/externals/icu/source/tools/tzcode/ |
H A D | localtime.c | 158 static time_t time1(struct tm * tmp, 1860 time1(struct tm *const tmp, in time1() function 1935 return time1(tmp, localsub, 0L); in mktime() 1953 return time1(tmp, gmtsub, 0L); in timegm() 1961 return time1(tmp, gmtsub, offset); in timeoff()
|
/third_party/rust/crates/nix/test/sys/ |
H A D | test_socket.rs | 2236 let time1 = SystemTime::now(); in test_recvmsg_timestampns() 2242 assert!(rduration <= time1.duration_since(UNIX_EPOCH).unwrap()); in test_recvmsg_timestampns() 2293 let time1 = SystemTime::now(); in test_recvmmsg_timestampns() 2299 assert!(rduration <= time1.duration_since(UNIX_EPOCH).unwrap()); in test_recvmmsg_timestampns()
|