Home
last modified time | relevance | path

Searched refs:tv_usec (Results 1 – 18 of 18) sorted by relevance

/bionic/libc/include/sys/
Dtime.h59 ((a)->tv_sec = (a)->tv_usec = 0)
62 ((a)->tv_sec != 0 || (a)->tv_usec != 0)
66 ? (a)->tv_usec op (b)->tv_usec \
72 (res)->tv_usec = (a)->tv_usec + (b)->tv_usec; \
73 if ((res)->tv_usec >= 1000000) { \
74 (res)->tv_usec -= 1000000; \
82 (res)->tv_usec = (a)->tv_usec - (b)->tv_usec; \
83 if ((res)->tv_usec < 0) { \
84 (res)->tv_usec += 1000000; \
91 (ts)->tv_nsec = (tv)->tv_usec * 1000; \
[all …]
/bionic/tests/
Dsys_time_test.cpp37 tv[0].tv_usec = -123; in TEST()
40 tv[0].tv_usec = 1234567; in TEST()
44 tv[0].tv_usec = 0; in TEST()
46 tv[1].tv_usec = -123; in TEST()
49 tv[1].tv_usec = 1234567; in TEST()
64 tv[0].tv_usec = -123; in TEST()
67 tv[0].tv_usec = 1234567; in TEST()
71 tv[0].tv_usec = 0; in TEST()
73 tv[1].tv_usec = -123; in TEST()
76 tv[1].tv_usec = 1234567; in TEST()
[all …]
Dsys_select_test.cpp109 tv.tv_usec = 0; in TEST()
123 ASSERT_NE(0, tv.tv_usec); in TEST()
Dsys_socket_test.cpp89 tv.tv_usec = 0; in RunTest()
219 tv.tv_usec = 0; in TestSendMMsg()
/bionic/libc/bionic/
Dbionic_time_conversions.cpp38 if (tv.tv_usec >= 1000000 || tv.tv_usec < 0) { in timespec_from_timeval()
41 ts.tv_nsec = tv.tv_usec * 1000; in timespec_from_timeval()
52 tv.tv_usec = ts.tv_nsec / 1000; in timeval_from_timespec()
Dndk_cruft.cpp129 ts->tv_usec = fractional_seconds; in strtotimeval()
312 tb->millitm = (tv.tv_usec + 500) / 1000; in ftime()
/bionic/libc/upstream-openbsd/lib/libc/gen/
Dalarm.c42 itp->it_value.tv_usec = 0; in alarm()
45 if (oitv.it_value.tv_usec) in alarm()
/bionic/libc/upstream-netbsd/lib/libc/gen/
Dutime.c61 tv[0].tv_usec = tv[1].tv_usec = 0; in utime()
/bionic/libc/kernel/uapi/linux/
Dtime.h31 __kernel_suseconds_t tv_usec; member
62 __kernel_long_t tv_usec; member
Dinput.h30 #define input_event_usec time.tv_usec
/bionic/libc/kernel/uapi/linux/can/
Dbcm.h25 long tv_usec; member
/bionic/tests/headers/posix/
Dsys_select_h.c36 STRUCT_MEMBER(struct timeval, suseconds_t, tv_usec); in sys_select_h()
Dsys_time_h.c36 STRUCT_MEMBER(struct timeval, suseconds_t, tv_usec); in sys_time_h()
/bionic/libc/kernel/uapi/drm/
Dexynos_drm.h215 __u32 tv_usec; member
223 __u32 tv_usec; member
Dvmwgfx_drm.h222 __u32 tv_usec; member
Ddrm.h558 __u32 tv_usec; member
/bionic/libc/upstream-netbsd/lib/libc/isc/
Dev_timers.c171 ts.tv_nsec = tv.tv_usec * 1000; in evTimeSpec()
180 tv.tv_usec = (suseconds_t)(ts.tv_nsec / 1000); in evTimeVal()
/bionic/linker/
Dlinker_main.cpp471 (((long long)t1.tv_sec * 1000000LL) + (long long)t1.tv_usec) -
472 (((long long)t0.tv_sec * 1000000LL) + (long long)t0.tv_usec)));