Home
last modified time | relevance | path

Searched refs:tv_nsec (Results 1 - 25 of 749) sorted by relevance

12345678910>>...30

/third_party/mesa3d/src/util/tests/
H A Dtimespec_test.cpp38 a.tv_nsec = NSEC_PER_SEC - 1; in TEST()
40 b.tv_nsec = 2; in TEST()
43 EXPECT_EQ(r.tv_nsec, 1); in TEST()
51 a.tv_nsec = 1; in TEST()
53 b.tv_nsec = 2; in TEST()
56 EXPECT_EQ(r.tv_nsec, NSEC_PER_SEC - 1); in TEST()
64 a.tv_nsec = 4; in TEST()
73 a.tv_nsec = 4000; in TEST()
82 a.tv_nsec = 4000000; in TEST()
91 uint32_t tv_nsec; in TEST() local
[all...]
/third_party/mesa3d/include/android_stub/log/
H A Dlog_time.h29 #define LOG_TIME_NSEC(t) ((t)->tv_nsec & (UINT32_MAX >> 2))
38 uint32_t tv_nsec = 0; member
44 : tv_sec(static_cast<uint32_t>(T.tv_sec)), tv_nsec(static_cast<uint32_t>(T.tv_nsec)) {} in log_time()
46 : tv_sec(sec), tv_nsec(nsec) { in log_time()
53 tv_nsec = static_cast<uint32_t>(T.tv_nsec); in log_time()
59 (tv_nsec == static_cast<uint32_t>(T.tv_nsec)); in operator ==()
67 (tv_nsec < static_cas in operator <()
159 uint32_t tv_nsec; global() member
[all...]
/third_party/mesa3d/src/util/
H A Dtimespec.h56 r->tv_nsec = a->tv_nsec + b->tv_nsec; in timespec_add()
57 if (r->tv_nsec > NSEC_PER_SEC) { in timespec_add()
59 r->tv_nsec -= NSEC_PER_SEC; in timespec_add()
75 r->tv_nsec = a->tv_nsec - b->tv_nsec; in timespec_sub()
76 if (r->tv_nsec < 0) { in timespec_sub()
78 r->tv_nsec in timespec_sub()
213 timespec_to_proto(const struct timespec *a, uint32_t *tv_sec_hi, uint32_t *tv_sec_lo, uint32_t *tv_nsec) timespec_to_proto() argument
272 timespec_from_proto(struct timespec *a, uint32_t tv_sec_hi, uint32_t tv_sec_lo, uint32_t tv_nsec) timespec_from_proto() argument
[all...]
/third_party/musl/libc-test/src/functional/
H A Dutime64.c24 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()
35 TESTVAL(st.st_atim.tv_nsec,==,0); in main()
37 TESTVAL(st.st_mtim.tv_nsec,==,0); 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()
42 TESTVAL(st.st_atim.tv_nsec,==,0); in main()
44 TESTVAL(st.st_mtim.tv_nsec, in main()
[all...]
H A Dutime.c21 TEST(utimensat(AT_FDCWD, "/dev/null/invalid", ((struct timespec[2]){{.tv_nsec=UTIME_OMIT},{.tv_nsec=UTIME_OMIT}}), 0)==0 || errno==ENOTDIR, in main()
23 TEST(futimens(-1, ((struct timespec[2]){{.tv_nsec=UTIME_OMIT},{.tv_nsec=UTIME_OMIT}}))==0 || errno==EBADF, in main()
32 TESTVAL(st.st_atim.tv_nsec,==,0); in main()
34 TESTVAL(st.st_mtim.tv_nsec,==,0); in main()
36 TEST(futimens(fd, ((struct timespec[2]){{.tv_sec=1,.tv_nsec=UTIME_OMIT},{.tv_sec=1,.tv_nsec=UTIME_OMIT}})) == 0, "\n"); in main()
39 TESTVAL(st.st_atim.tv_nsec,==,0); in main()
41 TESTVAL(st.st_mtim.tv_nsec, in main()
[all...]
/third_party/musl/libc-test/src/functionalext/supplement/time/
H A Dclock_nanosleep.c32 ts.tv_sec = ts.tv_nsec / 1000000000; in clock_nanosleep_0100()
33 ts.tv_nsec = 200000000; in clock_nanosleep_0100()
47 ts.tv_sec = ts.tv_nsec / 1000000000; in clock_nanosleep_0200()
48 ts.tv_nsec = 200000000; in clock_nanosleep_0200()
62 ts.tv_sec = ts.tv_nsec / 1000000000; in clock_nanosleep_0300()
63 ts.tv_nsec = 200000000; in clock_nanosleep_0300()
77 ts.tv_sec = ts.tv_nsec / 1000000000; in clock_nanosleep_0400()
78 ts.tv_nsec = 200000000; in clock_nanosleep_0400()
93 ts.tv_sec = ts.tv_nsec / 1000000000; in clock_nanosleep_0500()
94 ts.tv_nsec in clock_nanosleep_0500()
[all...]
/third_party/libfuse/lib/
H A Dfuse_misc.h30 #define ST_ATIM_NSEC(stbuf) ((stbuf)->st_atim.tv_nsec)
31 #define ST_CTIM_NSEC(stbuf) ((stbuf)->st_ctim.tv_nsec)
32 #define ST_MTIM_NSEC(stbuf) ((stbuf)->st_mtim.tv_nsec)
33 #define ST_ATIM_NSEC_SET(stbuf, val) (stbuf)->st_atim.tv_nsec = (val)
34 #define ST_CTIM_NSEC_SET(stbuf, val) (stbuf)->st_ctim.tv_nsec = (val)
35 #define ST_MTIM_NSEC_SET(stbuf, val) (stbuf)->st_mtim.tv_nsec = (val)
38 #define ST_ATIM_NSEC(stbuf) ((stbuf)->st_atimespec.tv_nsec)
39 #define ST_CTIM_NSEC(stbuf) ((stbuf)->st_ctimespec.tv_nsec)
40 #define ST_MTIM_NSEC(stbuf) ((stbuf)->st_mtimespec.tv_nsec)
41 #define ST_ATIM_NSEC_SET(stbuf, val) (stbuf)->st_atimespec.tv_nsec
[all...]
/third_party/musl/src/stat/
H A Dfstatat.c25 uint32_t tv_nsec; member
55 .st_atim.tv_nsec = stx.stx_atime.tv_nsec, in fstatat_statx()
57 .st_mtim.tv_nsec = stx.stx_mtime.tv_nsec, in fstatat_statx()
59 .st_ctim.tv_nsec = stx.stx_ctime.tv_nsec, in fstatat_statx()
62 .__st_atim32.tv_nsec = stx.stx_atime.tv_nsec, in fstatat_statx()
64 .__st_mtim32.tv_nsec in fstatat_statx()
[all...]
/third_party/rust/crates/rustix/tests/thread/
H A Dclocks.rs24 tv_nsec: 1_000_000_000, in test_invalid_nanosleep()
31 tv_nsec: !0, in test_invalid_nanosleep()
38 tv_nsec: 1_000_000_000, in test_invalid_nanosleep()
45 tv_nsec: !0, in test_invalid_nanosleep()
69 tv_nsec: 1000000000, in test_invalid_nanosleep_absolute()
79 tv_nsec: !0, in test_invalid_nanosleep_absolute()
89 tv_nsec: 1_000_000_000, in test_invalid_nanosleep_absolute()
99 tv_nsec: !0, in test_invalid_nanosleep_absolute()
124 tv_nsec: 1_000_000_000, in test_invalid_nanosleep_relative()
134 tv_nsec in test_invalid_nanosleep_relative()
[all...]
/third_party/rust/crates/rustix/src/backend/linux_raw/time/
H A Dsyscalls.rs63 tv_nsec: old_result.tv_nsec.into(), in clock_getres_old()
135 tv_nsec: new_value in timerfd_settime_old()
137 .tv_nsec in timerfd_settime_old()
147 tv_nsec: new_value in timerfd_settime_old()
149 .tv_nsec in timerfd_settime_old()
168 tv_nsec: old_result.it_interval.tv_nsec.into(), in timerfd_settime_old()
172 tv_nsec: old_result.it_value.tv_nsec in timerfd_settime_old()
[all...]
/third_party/rust/crates/rustix/tests/time/
H A Dtimespec.rs8 let tv_nsec: Nsecs = 0; in test_timespec_layout()
9 let x = Timespec { tv_sec, tv_nsec }; in test_timespec_layout()
12 let _y = Timespec { tv_sec, tv_nsec }; in test_timespec_layout()
13 let _z = Timespec { tv_sec, tv_nsec }; in test_timespec_layout()
19 tv_nsec: UTIME_NOW, in test_timespec_layout()
24 tv_nsec: UTIME_OMIT, in test_timespec_layout()
26 let _ = Timespec { tv_sec, tv_nsec: 0 }; in test_timespec_layout()
29 tv_nsec: 999_999_999, in test_timespec_layout()
H A Dtimerfd.rs13 tv_nsec: 0, in test_timerfd()
17 tv_nsec: 2, in test_timerfd()
31 assert_eq!(set.it_interval.tv_nsec, new.it_interval.tv_nsec); in test_timerfd()
34 new.it_value.tv_nsec < set.it_value.tv_nsec || new.it_value.tv_sec < set.it_value.tv_sec in test_timerfd()
47 tv_nsec: 6, in test_timerfd_with_interval()
51 tv_nsec: 7, in test_timerfd_with_interval()
64 assert_eq!(set.it_interval.tv_nsec, new.it_interval.tv_nsec); in test_timerfd_with_interval()
[all...]
H A Dy2038.rs23 let _ = Timespec { tv_sec, tv_nsec: 0 }; in test_y2038()
31 it_interval: Timespec { tv_sec, tv_nsec: 0 }, in test_y2038()
32 it_value: Timespec { tv_sec, tv_nsec: 0 }, in test_y2038()
50 tv_nsec: 20, in test_y2038_with_timerfd()
54 tv_nsec: 21, in test_y2038_with_timerfd()
73 assert_eq!(set.it_interval.tv_nsec, new.it_interval.tv_nsec); in test_y2038_with_timerfd()
76 new.it_value.tv_nsec < set.it_value.tv_nsec || new.it_value.tv_sec < set.it_value.tv_sec in test_y2038_with_timerfd()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/timer_settime/
H A D9-2.c89 its.it_interval.tv_nsec = 0; in main()
96 if (tsbefore.tv_nsec + timeroffsets[i][1] < 1000000000) { in main()
99 its.it_value.tv_nsec = tsbefore.tv_nsec + in main()
104 its.it_value.tv_nsec = tsbefore.tv_nsec + in main()
109 (int)its.it_value.tv_sec, (int)its.it_value.tv_nsec); in main()
127 (int)tsafter.tv_sec, (int)tsafter.tv_nsec); in main()
133 if (tsafter.tv_nsec < its.it_value.tv_nsec) { in main()
[all...]
H A D8-2.c37 its.it_interval.tv_nsec = 0; in main()
39 its.it_value.tv_nsec = 0; in main()
63 oits.it_value.tv_nsec = 1000; in main()
65 oits.it_interval.tv_nsec = 1000; in main()
73 (0 == oits.it_value.tv_nsec) && in main()
74 (0 == oits.it_interval.tv_sec) && (0 == oits.it_interval.tv_nsec)) { in main()
79 printf("Test FAILED: value: tv_sec %d tv_nsec %d\n", in main()
80 (int)oits.it_value.tv_sec, (int)oits.it_value.tv_nsec); in main()
82 printf("Test FAILED: interval: tv_sec %d tv_nsec %d\n", in main()
84 (int)oits.it_interval.tv_nsec); in main()
[all...]
/third_party/ntfs-3g/libfuse-lite/
H A Dfuse_misc.h27 #define ST_ATIM_NSEC(stbuf) ((stbuf)->st_atim.tv_nsec)
28 #define ST_CTIM_NSEC(stbuf) ((stbuf)->st_ctim.tv_nsec)
29 #define ST_MTIM_NSEC(stbuf) ((stbuf)->st_mtim.tv_nsec)
30 #define ST_ATIM_NSEC_SET(stbuf, val) (stbuf)->st_atim.tv_nsec = (val)
31 #define ST_MTIM_NSEC_SET(stbuf, val) (stbuf)->st_mtim.tv_nsec = (val)
34 #define ST_ATIM_NSEC(stbuf) ((stbuf)->st_atimespec.tv_nsec)
35 #define ST_CTIM_NSEC(stbuf) ((stbuf)->st_ctimespec.tv_nsec)
36 #define ST_MTIM_NSEC(stbuf) ((stbuf)->st_mtimespec.tv_nsec)
37 #define ST_ATIM_NSEC_SET(stbuf, val) (stbuf)->st_atimespec.tv_nsec = (val)
38 #define ST_MTIM_NSEC_SET(stbuf, val) (stbuf)->st_mtimespec.tv_nsec
[all...]
/third_party/musl/compat/time32/
H A Dtimerfd_settime32.c10 .it_interval.tv_nsec = val32->it_interval.tv_nsec, in __timerfd_settime32()
12 .it_value.tv_nsec = val32->it_value.tv_nsec}), in __timerfd_settime32()
21 old32->it_interval.tv_nsec = old.it_interval.tv_nsec; in __timerfd_settime32()
23 old32->it_value.tv_nsec = old.it_value.tv_nsec; in __timerfd_settime32()
H A Dtimer_settime32.c9 .it_interval.tv_nsec = val32->it_interval.tv_nsec, in __timer_settime32()
11 .it_value.tv_nsec = val32->it_value.tv_nsec}), in __timer_settime32()
20 old32->it_interval.tv_nsec = old.it_interval.tv_nsec; in __timer_settime32()
22 old32->it_value.tv_nsec = old.it_value.tv_nsec; in __timer_settime32()
/third_party/ntfs-3g/include/ntfs-3g/
H A Dntfstime.h45 long tv_nsec; member
75 spec.tv_nsec = (cputime - (NTFS_TIME_OFFSET) in ntfs2timespec()
78 if ((spec.tv_nsec < 0) || (spec.tv_nsec > 999999999)) in ntfs2timespec()
79 spec.tv_nsec = 0; in ntfs2timespec()
104 + NTFS_TIME_OFFSET + spec.tv_nsec/100; in timespec2ntfs()
123 now.tv_nsec = microseconds.tv_usec*1000; in ntfs_current_time()
126 now.tv_nsec = 0; in ntfs_current_time()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_join/
H A D1-2.c131 (ts_th.tv_nsec < ts_pre.tv_nsec))) { in main()
133 ts_pre.tv_nsec); in main()
135 ts_th.tv_nsec); in main()
137 ts_post.tv_nsec); in main()
143 (ts_post.tv_nsec < ts_th.tv_nsec))) { in main()
145 ts_pre.tv_nsec); in main()
147 ts_th.tv_nsec); in main()
149 ts_post.tv_nsec); in main()
[all...]
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/nanosleep/
H A D10000-1.c56 tssleepfor.tv_nsec = sleepvalid[i][1]; in main()
58 (int)tssleepfor.tv_sec, (int)tssleepfor.tv_nsec); in main()
73 sleptns = tsafter.tv_nsec - tsbefore.tv_nsec; in main()
82 tssleepfor.tv_sec, tssleepfor.tv_nsec); in main()
87 tssleepfor.tv_sec, tssleepfor.tv_nsec); in main()
97 tssleepfor.tv_nsec = sleepinvalid[i][1]; in main()
99 (int)tssleepfor.tv_sec, (int)tssleepfor.tv_nsec); in main()
/third_party/rust/crates/rustix/src/backend/libc/thread/
H A Dsyscalls.rs107 let tv_nsec = match request.tv_nsec.try_into() { in clock_nanosleep_relative_old()
108 Ok(tv_nsec) => tv_nsec, in clock_nanosleep_relative_old()
111 let old_request = c::timespec { tv_sec, tv_nsec }; in clock_nanosleep_relative_old()
126 tv_nsec: old_remain.tv_nsec.into(), in clock_nanosleep_relative_old()
195 tv_nsec: request.tv_nsec.try_into().map_err(|_| io::Errno::INVAL)?, in clock_nanosleep_absolute_old()
252 let tv_nsec in nanosleep_old()
[all...]
/third_party/ltp/testcases/realtime/lib/
H A Dlibrttest.c428 ts_delta->tv_nsec = ts_end->tv_nsec - ts_start->tv_nsec; in ts_minus()
442 ts_sum->tv_nsec = ts_a->tv_nsec + ts_b->tv_nsec; in ts_plus()
455 while (ts->tv_nsec > NS_PER_SEC) { in ts_normalize()
457 ts->tv_nsec -= NS_PER_SEC; in ts_normalize()
459 while (ts->tv_nsec < -NS_PER_SEC) { in ts_normalize()
461 ts->tv_nsec in ts_normalize()
[all...]
/third_party/musl/Benchmark/musl/
H A Dlibc_time.cpp34 req.tv_nsec = 0; in Bm_function_Nanosleep_0ns()
43 req.tv_nsec = TEN; in Bm_function_Nanosleep_10ns()
52 req.tv_nsec = HUNDRED; in Bm_function_Nanosleep_100ns()
68 req.tv_nsec = TEN; in Bm_function_Clock_nanosleep_realtime()
77 req.tv_nsec = TEN; in Bm_function_Clock_nanosleep_realtime_raw()
86 req.tv_nsec = TEN; in Bm_function_Clock_nanosleep_realtime_coarse()
95 req.tv_nsec = TEN; in Bm_function_Clock_nanosleep_monotonic()
103 req.tv_nsec = TEN; in Bm_function_Clock_nanosleep_monotonic_coarse()
111 req.tv_nsec = TEN; in Bm_function_Clock_nanosleep_monotonic_raw()
119 req.tv_nsec in Bm_function_Clock_nanosleep_boottime()
[all...]
/third_party/ltp/testcases/kernel/syscalls/clock_gettime/
H A Dleapsec01.c41 if (snprintf(fmt, sizeof(fmt), "%%T.%09ld", now->tv_nsec) < 0) { in strtime()
58 if (a.tv_nsec > b.tv_nsec) in in_order()
81 now.tv_nsec = tx->time.tv_usec * 1000; in adjtimex_status()
136 now.tv_nsec = 0; in run_leapsec()
167 start.tv_nsec += now.tv_nsec; in run_leapsec()
168 start.tv_sec += start.tv_nsec / NSEC_PER_SEC; in run_leapsec()
169 start.tv_nsec = start.tv_nsec in run_leapsec()
[all...]

Completed in 8 milliseconds

12345678910>>...30