/third_party/mesa3d/src/util/ |
H A D | timespec.h | 27 * \file timespec.h 29 * Helpers to deal with timespec structures. 52 timespec_add(struct timespec *r, in timespec_add() 53 const struct timespec *a, const struct timespec *b) in timespec_add() 71 timespec_sub(struct timespec *r, in timespec_sub() 72 const struct timespec *a, const struct timespec *b) in timespec_sub() 87 * Add a nanosecond value to a timespec 90 * \param a[in] base operand as timespec [all...] |
/drivers/peripheral/sensor/test/performance/hdi/ |
H A D | hdf_sensor_hdi_performance_test.cpp | 76 struct timespec tv1 = (struct timespec){0}; in HWTEST_F() 77 struct timespec tv2 = (struct timespec){0}; in HWTEST_F() 98 struct timespec tv1 = (struct timespec){0}; in HWTEST_F() 99 struct timespec tv2 = (struct timespec){0}; in HWTEST_F() 119 struct timespec tv1 = (struct timespec){ in HWTEST_F() [all...] |
/drivers/peripheral/sensor/test/performance/common/ |
H A D | hdf_sensor_performance_test.cpp | 97 struct timespec tv1 = (struct timespec){0}; in HWTEST_F() 98 struct timespec tv2 = (struct timespec){0}; in HWTEST_F() 120 struct timespec tv1 = (struct timespec){0}; in HWTEST_F() 121 struct timespec tv2 = (struct timespec){0}; in HWTEST_F() 141 struct timespec tv1 = (struct timespec){ in HWTEST_F() [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/kvm/lib/ |
H A D | test_util.c | 57 int64_t timespec_to_ns(struct timespec ts) in timespec_to_ns() 62 struct timespec timespec_add_ns(struct timespec ts, int64_t ns) in timespec_add_ns() 64 struct timespec res; in timespec_add_ns() 73 struct timespec timespec_add(struct timespec ts1, struct timespec ts2) in timespec_add() 77 return timespec_add_ns((struct timespec){0}, ns1 + ns2); in timespec_add() 80 struct timespec timespec_sub(struct timespec ts [all...] |
/drivers/peripheral/wlan/test/performance/common/ |
H A D | hdf_wlan_performance_test.cpp | 109 struct timespec tv1 = (struct timespec){0};
in HWTEST_F() 110 struct timespec tv2 = (struct timespec){0};
in HWTEST_F() 137 struct timespec tv1 = (struct timespec){0};
in HWTEST_F() 138 struct timespec tv2 = (struct timespec){0};
in HWTEST_F() 169 struct timespec tv1 = (struct timespec){ in HWTEST_F() [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/kvm/include/ |
H A D | test_util.h | 63 int64_t timespec_to_ns(struct timespec ts); 64 struct timespec timespec_add_ns(struct timespec ts, int64_t ns); 65 struct timespec timespec_add(struct timespec ts1, struct timespec ts2); 66 struct timespec timespec_sub(struct timespec ts1, struct timespec ts2); 67 struct timespec timespec_diff_no [all...] |
/third_party/musl/libc-test/src/functionalext/supplement/time/time_gtest/ |
H A D | sys_clock_test.cpp | 20 timespec times; in HWTEST_F() 35 timespec times; in HWTEST_F() 50 timespec times; in HWTEST_F() 63 timespec times; in HWTEST_F() 74 timespec times; in HWTEST_F() 88 timespec times; in HWTEST_F() 100 timespec times; in HWTEST_F() 114 timespec times; in HWTEST_F() 129 timespec times; in HWTEST_F() 144 timespec time in HWTEST_F() [all...] |
/third_party/musl/porting/liteos_m_iccarm/kernel/include/ |
H A D | time.h | 67 struct timespec it_interval; 68 struct timespec it_value; 89 int nanosleep(const struct timespec *, struct timespec *); 90 int clock_getres(clockid_t, struct timespec *); 91 int clock_gettime(clockid_t, struct timespec *); 92 int clock_settime(clockid_t, const struct timespec *); 93 int clock_nanosleep(clockid_t, int, const struct timespec *, struct timespec *);
|
/third_party/mesa3d/src/util/tests/ |
H A D | timespec_test.cpp | 29 #include "util/timespec.h" 35 struct timespec a, b, r; in TEST() 48 struct timespec a, b, r; in TEST() 61 struct timespec a; in TEST() 70 struct timespec a; in TEST() 79 struct timespec a; in TEST() 88 struct timespec a; in TEST() 134 struct timespec a, r; in TEST() 184 struct timespec a, r; in TEST() 195 struct timespec in TEST() [all...] |
/drivers/peripheral/vibrator/test/performance/common/ |
H A D | hdf_vibrator_performance_test.cpp | 78 struct timespec tv1 = (struct timespec) {0}; in HWTEST_F() 79 struct timespec tv2 = (struct timespec) {0}; in HWTEST_F() 102 struct timespec tv1 = (struct timespec) {0}; in HWTEST_F() 103 struct timespec tv2 = (struct timespec) {0}; in HWTEST_F() 126 struct timespec tv1 = (struct timespec) { in HWTEST_F() [all...] |
/drivers/peripheral/vibrator/test/performance/hdi/ |
H A D | hdf_vibrator_hdi_performance_test.cpp | 74 struct timespec tv1 = (struct timespec) {0}; in HWTEST_F() 75 struct timespec tv2 = (struct timespec) {0}; in HWTEST_F() 98 struct timespec tv1 = (struct timespec) {0}; in HWTEST_F() 99 struct timespec tv2 = (struct timespec) {0}; in HWTEST_F() 122 struct timespec tv1 = (struct timespec) { in HWTEST_F() [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/kvm/include/ |
H A D | test_util.h | 81 int64_t timespec_to_ns(struct timespec ts); 82 struct timespec timespec_add_ns(struct timespec ts, int64_t ns); 83 struct timespec timespec_add(struct timespec ts1, struct timespec ts2); 84 struct timespec timespec_sub(struct timespec ts1, struct timespec ts2); 85 struct timespec timespec_elapse [all...] |
/test/xts/hats/kernel/syscalls/timer/clockgettime/ |
H A D | ClockGetTimeApiTest.cpp | 31 static struct timespec g_timeTs; 68 struct timespec ts; in HWTEST_F() 88 struct timespec ts; in HWTEST_F() 107 struct timespec ts; in HWTEST_F() 108 struct timespec tsSec; in HWTEST_F() 129 struct timespec ts; in HWTEST_F() 130 struct timespec tsSec; in HWTEST_F() 151 struct timespec ts; in HWTEST_F() 152 struct timespec tsSec; in HWTEST_F() 173 struct timespec t in HWTEST_F() [all...] |
/kernel/liteos_a/syscall/ |
H A D | time_syscall.c | 263 int SysClockSettime(clockid_t clockID, const struct timespec *tp) in SysClockSettime() 266 struct timespec stp; in SysClockSettime() 273 if (LOS_ArchCopyFromUser(&stp, tp, sizeof(struct timespec))) { in SysClockSettime() 285 int SysClockGettime(clockid_t clockID, struct timespec *tp) in SysClockGettime() 288 struct timespec stp = { 0 }; in SysClockGettime() 300 if (LOS_ArchCopyToUser(tp, &stp, sizeof(struct timespec))) { in SysClockGettime() 308 int SysClockGetres(clockid_t clockID, struct timespec *tp) in SysClockGetres() 311 struct timespec stp = { 0 }; in SysClockGetres() 323 if (LOS_ArchCopyToUser(tp, &stp, sizeof(struct timespec))) { in SysClockGetres() 331 int SysClockNanoSleep(clockid_t clk, int flags, const struct timespec *re [all...] |
/third_party/musl/libc-test/src/functionalext/supplement/time/ |
H A D | clock_nanosleep.c | 22 extern int __clock_nanosleep_time64(clockid_t, int, const struct timespec *, struct timespec *); 31 struct timespec ts; in clock_nanosleep_0100() 46 struct timespec ts; in clock_nanosleep_0200() 61 struct timespec ts; in clock_nanosleep_0300() 76 struct timespec ts; in clock_nanosleep_0400() 92 struct timespec ts; in clock_nanosleep_0500() 108 struct timespec ts; in clock_nanosleep_0600() 123 struct timespec ts; in clock_nanosleep_time64_0100()
|
H A D | clock_getres.c | 19 extern int __clock_getres_time64 (clockid_t, struct timespec *); 28 struct timespec ts; in clock_getres_0100() 40 struct timespec ts; in clock_getres_0200() 52 struct timespec ts; in clock_getres_0300() 64 struct timespec ts; in clock_getres_0400() 76 struct timespec ts; in clock_getres_0500() 88 struct timespec ts; in clock_getres_time64_0100()
|
/drivers/peripheral/light/test/performance/hdi/ |
H A D | hdf_light_hdi_performance_test.cpp | 75 struct timespec tv1 = (struct timespec) {0}; in HWTEST_F() 76 struct timespec tv2 = (struct timespec) {0}; in HWTEST_F() 108 struct timespec tv1 = (struct timespec) {0}; in HWTEST_F() 109 struct timespec tv2 = (struct timespec) {0}; in HWTEST_F() 150 struct timespec tv1 = (struct timespec) { in HWTEST_F() [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/kvm/lib/ |
H A D | test_util.c | 81 int64_t timespec_to_ns(struct timespec ts) in timespec_to_ns() 86 struct timespec timespec_add_ns(struct timespec ts, int64_t ns) in timespec_add_ns() 88 struct timespec res; in timespec_add_ns() 97 struct timespec timespec_add(struct timespec ts1, struct timespec ts2) in timespec_add() 101 return timespec_add_ns((struct timespec){0}, ns1 + ns2); in timespec_add() 104 struct timespec timespec_sub(struct timespec ts [all...] |
/third_party/ltp/include/ |
H A D | tst_timer.h | 7 Timer - struct timespec conversion runtimes and easy to use functions to 149 struct timespec libc_ts; 586 * Checks that timespec is valid, i.e. that the timestamp is not zero and that 589 * 0: On success, i.e. timespec updated correctly. 590 * -1: Error, timespec not updated. 607 * Converts timespec to tst_ts. 609 static inline struct tst_ts tst_ts_from_timespec(struct timespec ts) in tst_ts_from_timespec() 621 * Converst tst_ts into timespec. 623 static inline struct timespec tst_ts_to_timespec(struct tst_ts t) in tst_ts_to_timespec() 646 * Converts timespec t [all...] |
/third_party/musl/porting/uniproton/kernel/include/ |
H A D | time.h | 62 int timespec_get(struct timespec *, int); 82 struct timespec it_interval; 83 struct timespec it_value; 101 int nanosleep (const struct timespec *, struct timespec *); 102 int clock_getres (clockid_t, struct timespec *); 103 int clock_gettime (clockid_t, struct timespec *); 104 int clock_settime (clockid_t, const struct timespec *); 105 int clock_nanosleep (clockid_t, int, const struct timespec *, struct timespec *); [all...] |
/third_party/musl/porting/liteos_m/user/include/ |
H A D | time.h | 61 int timespec_get(struct timespec *, int); 81 struct timespec it_interval; 82 struct timespec it_value; 100 int nanosleep (const struct timespec *, struct timespec *); 101 int clock_getres (clockid_t, struct timespec *); 102 int clock_gettime (clockid_t, struct timespec *); 103 int clock_settime (clockid_t, const struct timespec *); 104 int clock_nanosleep (clockid_t, int, const struct timespec *, struct timespec *); [all...] |
/third_party/musl/porting/liteos_m/kernel/include/ |
H A D | time.h | 62 int timespec_get(struct timespec *, int); 82 struct timespec it_interval; 83 struct timespec it_value; 101 int nanosleep (const struct timespec *, struct timespec *); 102 int clock_getres (clockid_t, struct timespec *); 103 int clock_gettime (clockid_t, struct timespec *); 104 int clock_settime (clockid_t, const struct timespec *); 105 int clock_nanosleep (clockid_t, int, const struct timespec *, struct timespec *); [all...] |
/third_party/musl/libc-test/src/api/ |
H A D | time.c | 17 struct timespec x; in f() 23 F(struct timespec,it_interval) in f() 24 F(struct timespec,it_value) in f() 58 {int(*p)(clockid_t,struct timespec*) = clock_getres;} in f() 59 {int(*p)(clockid_t,struct timespec*) = clock_gettime;} in f() 60 {int(*p)(clockid_t,int,const struct timespec*,struct timespec*) = clock_nanosleep;} in f() 61 {int(*p)(clockid_t,const struct timespec*) = clock_settime;} in f() 65 {int(*p)(const struct timespec*,struct timespec*) in f() [all...] |
/third_party/musl/libc-test/src/functional/ |
H A D | utime64.c | 15 extern int __futimens_time64(int, const struct timespec [2]); 24 TEST(utimensat(AT_FDCWD, "/dev/null/invalid", ((struct timespec[2]){{.tv_nsec=UTIME_OMIT},{.tv_nsec=UTIME_OMIT}}), 0)==0 || errno==ENOTDIR, in main() 26 TEST(__futimens_time64(-1, ((struct timespec[2]){{.tv_nsec=UTIME_OMIT},{.tv_nsec=UTIME_OMIT}}))==0 || errno==EBADF, in main() 32 TEST(__futimens_time64(fd, (struct timespec[2]){0}) == 0, "\n"); in main() 39 TEST(__futimens_time64(fd, ((struct timespec[2]){{.tv_sec=1,.tv_nsec=UTIME_OMIT},{.tv_sec=1,.tv_nsec=UTIME_OMIT}})) == 0, "\n"); in main() 48 TEST(__futimens_time64(fd, ((struct timespec[2]){{.tv_nsec=UTIME_NOW},{.tv_nsec=UTIME_OMIT}})) == 0, "\n"); in main() 54 TEST(__futimens_time64(fd, (struct timespec[2]){0}) == 0, "\n"); in main() 55 TEST(__futimens_time64(fd, ((struct timespec[2]){{.tv_nsec=UTIME_OMIT},{.tv_nsec=UTIME_NOW}})) == 0, "\n"); in main() 60 TEST(__futimens_time64(fd, ((struct timespec[2]){{.tv_nsec=UTIME_NOW},{.tv_nsec=UTIME_OMIT}})) == 0, "\n"); in main() 66 if (TEST(__futimens_time64(fd, ((struct timespec[ in main() [all...] |
/third_party/musl/libc-test/src/functionalext/thread/ |
H A D | pthread_mutex_ext.c | 24 struct timespec ts = {0}; in PthreadClocklockOutRealTime() 25 struct timespec tsNow = {0}; in PthreadClocklockOutRealTime() 61 struct timespec ts = {0}; in PthreadClocklockNoOutRealTime() 92 struct timespec ts = {0}; in PthreadClocklockOutMonoTime() 93 struct timespec tsNow = {0}; in PthreadClocklockOutMonoTime() 129 struct timespec ts = {0}; in PthreadClocklockNoOutMonoTime() 160 struct timespec ts = {0}; in PthreadClocklockOutRealTime2() 161 struct timespec tsNow = {0}; in PthreadClocklockOutRealTime2() 200 struct timespec ts = {0}; in PthreadClocklockNoOutMonoTime2() 215 struct timespec tsNo in pthread_mutex_clocklock_0060() [all...] |