/test/xts/acts/kernel_lite/time_posix/src/ |
H A D | ClockTimeTest.cpp | 48 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 D | TimeUtilsTest.cpp | 176 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 D | utils.cpp | 55 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 D | log.h | 36 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 D | ProcessSchedApiTest.cpp | 921 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 D | log.h | 32 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 D | utils.cpp | 52 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 D | SignalTest.cpp | 446 struct timespec time1 = {0, 100*1000000};
in HWTEST_F() local 457 int rt = sigtimedwait(×et, 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 D | Malloc_safe_unlink.cpp | 155 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 D | Malloc_modify_pointer.cpp | 136 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 D | Malloc_encode_pointer.cpp | 145 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 D | nativeimage.cpp | 854 int64_t time1 = static_cast<int64_t>(current_timestamp);
in OHNativeImageGetTimestampNormal() local 859 if (res1 == 0 && current_timestamp1 == time1) {
in OHNativeImageGetTimestampNormal()
|