Home
last modified time | relevance | path

Searched refs:time1 (Results 1 - 12 of 12) sorted by relevance

/test/xts/acts/kernel_lite/time_posix/src/
H A DClockTimeTest.cpp48 struct timespec time1 = {0, 0}; in TearDownTestCase() local
49 clock_gettime(CLOCK_REALTIME, &time1); in TearDownTestCase()
50 LOG("test end at %ld", (long)time1.tv_sec); in TearDownTestCase()
72 struct timespec time1 = {0, 0}; in HWTEST_P() local
73 int rt = clock_getres(cid, &time1); in HWTEST_P()
74 LOG("%s Resolution: %ld nanosecond\n", cname, time1.tv_nsec); in HWTEST_P()
77 EXPECT_EQ(time1.tv_sec, 0); in HWTEST_P()
79 EXPECT_EQ(time1.tv_nsec, CLOCK_RESOLUTION_HIGH) << "Resolution check failed"; in HWTEST_P()
81 EXPECT_EQ(time1.tv_nsec, CLOCK_RESOLUTION_LOW) << "Resolution check failed"; in HWTEST_P()
95 struct timespec time1 in HWTEST_P() local
115 struct timespec time1 = {0, 0}; HWTEST_F() local
[all...]
H A DTimeUtilsTest.cpp176 time_t time1 = 18880; in HWTEST_F() local
177 struct tm *stm = gmtime(&time1); in HWTEST_F()
182 time1 = LONG_MAX; in HWTEST_F()
183 stm = gmtime(&time1); in HWTEST_F()
187 time1 = 253402300799; in HWTEST_F()
188 stm = gmtime(&time1); in HWTEST_F()
192 time1 = LONG_MIN; in HWTEST_F()
193 stm = gmtime(&time1); in HWTEST_F()
/test/xts/acts/kernel_lite/utils/
H A Dutils.cpp55 struct timespec time1 = { 0, 0 }; in KeepRun() local
57 clock_gettime(CLOCK_MONOTONIC, &time1); in KeepRun()
58 LOGD("KeepRun start : tv_sec=%ld, tv_nsec=%ld\n", time1.tv_sec, time1.tv_nsec); in KeepRun()
64 runned = (time2.tv_sec - time1.tv_sec) * 1000 + (time2.tv_nsec - time1.tv_nsec) / 1000000; in KeepRun()
143 struct timespec time1 = { timeoutSec, 0 }; in RunElf() local
144 if (sigtimedwait(&set, nullptr, &time1) == -1) { in RunElf()
H A Dlog.h36 struct timespec time1 = {0, 0}; in GetCurTime() local
37 clock_gettime(CLOCK_MONOTONIC, &time1); in GetCurTime()
38 return time1.tv_sec + ((float)time1.tv_nsec) / SYS_NS_PER_S; in GetCurTime()
/test/xts/acts/kernel_lite/sched_posix/src/
H A DProcessSchedApiTest.cpp921 struct timespec time1 = {1, 0}; in HWTEST_F() local
922 int rt = sched_rr_get_interval(0, &time1); in HWTEST_F()
923 printf("%llu, %u\n", time1.tv_sec, time1.tv_nsec); in HWTEST_F()
925 EXPECT_EQ(time1.tv_sec, 0); in HWTEST_F()
926 EXPECT_GE (time1.tv_nsec, DEFAULT_RR_SCHED_INTERVAL); in HWTEST_F()
928 time1.tv_sec = 1; in HWTEST_F()
929 time1.tv_nsec = 0; in HWTEST_F()
930 rt = sched_rr_get_interval(getpid(), &time1); in HWTEST_F()
931 printf("%llu, %u\n", time1 in HWTEST_F()
944 struct timespec time1 = {0, 0}; HWTEST_F() local
967 struct timespec time1 = {0, 0}; HWTEST_F() local
[all...]
/test/xts/hats/kernel/posix_interface/interface_gn/utils/
H A Dlog.h32 struct timespec time1 = {0, 0}; in GetCurTime() local
33 clock_gettime(CLOCK_MONOTONIC, &time1); in GetCurTime()
34 return time1.tv_sec + ((float)time1.tv_nsec) / SYS_NS_PER_S; in GetCurTime()
H A Dutils.cpp52 struct timespec time1 = { 0, 0 }; in KeepRun() local
54 clock_gettime(CLOCK_MONOTONIC, &time1); in KeepRun()
55 LOGD("KeepRun start : tv_sec=%ld, tv_nsec=%ld\n", time1.tv_sec, time1.tv_nsec); in KeepRun()
63 runned = (time2.tv_sec - time1.tv_sec) * sectomsec + (time2.tv_nsec - time1.tv_nsec) / nsectomsec; in KeepRun()
212 struct timespec time1 = { timeoutSec, 0 }; in RunElf() local
213 if (sigtimedwait(&set, nullptr, &time1) == -1) { in RunElf()
/test/xts/acts/kernel_lite/ipc_posix/signal/
H A DSignalTest.cpp446 struct timespec time1 = {0, 100*1000000}; in HWTEST_F() local
457 int rt = sigtimedwait(&timeset, nullptr, &time1); in HWTEST_F()
517 struct timespec time1 = {0, 0}; in HWTEST_F() local
520 clock_gettime(CLOCK_MONOTONIC, &time1); in HWTEST_F()
528 double duration = (time2.tv_sec - time1.tv_sec)*1000.0 + (time2.tv_nsec - time1.tv_nsec)/1000000.0; in HWTEST_F()
529 LOG("clock_gettime1 : tv_sec=%ld, tv_nsec=%ld", time1.tv_sec, time1.tv_nsec); in HWTEST_F()
558 struct timespec time1 = {0, 100*1000000}; in HWTEST_F() local
563 int rt = sigtimedwait(&set, &si, &time1); in HWTEST_F()
614 struct timespec time1 = {0, 0}; HWTEST_F() local
649 struct timespec time1 = {0}; HWTEST_F() local
[all...]
/test/xts/hats/kernel/freelist/safe_unlink/
H A DMalloc_safe_unlink.cpp155 struct timespec time1 = {5, 0}; in HWTEST_F() local
166 if (sigtimedwait(&set, 0, &time1) == -1) { /* Wait for 5 seconds */ in HWTEST_F()
/test/xts/hats/kernel/freelist/modify_pointer/
H A DMalloc_modify_pointer.cpp136 struct timespec time1 = {5, 0}; in HWTEST_F() local
147 if (sigtimedwait(&set, 0, &time1) == -1) { /* Wait for 5 seconds */ in HWTEST_F()
/test/xts/hats/kernel/freelist/encode_pointer/
H A DMalloc_encode_pointer.cpp145 struct timespec time1 = {5, 0}; in HWTEST_F() local
156 if (sigtimedwait(&set, 0, &time1) == -1) { /* Wait for 5 seconds */ in HWTEST_F()
/test/xts/acts/graphic/nativeimage/entry/src/main/cpp/
H A Dnativeimage.cpp854 int64_t time1 = static_cast<int64_t>(current_timestamp); in OHNativeImageGetTimestampNormal() local
859 if (res1 == 0 && current_timestamp1 == time1) { in OHNativeImageGetTimestampNormal()

Completed in 9 milliseconds