Home
last modified time | relevance | path

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

/bionic/libc/include/sys/
Dtime.h46 ((a)->tv_sec = (a)->tv_usec = 0)
49 ((a)->tv_sec != 0 || (a)->tv_usec != 0)
53 ? (a)->tv_usec op (b)->tv_usec \
59 (res)->tv_usec = (a)->tv_usec + (b)->tv_usec; \
60 if ((res)->tv_usec >= 1000000) { \
61 (res)->tv_usec -= 1000000; \
69 (res)->tv_usec = (a)->tv_usec - (b)->tv_usec; \
70 if ((res)->tv_usec < 0) { \
71 (res)->tv_usec += 1000000; \
/bionic/tests/
Dsys_time_test.cpp29 tv[0].tv_usec = -123; in TEST()
32 tv[0].tv_usec = 1234567; in TEST()
35 tv[0].tv_usec = 0; in TEST()
37 tv[1].tv_usec = -123; in TEST()
40 tv[1].tv_usec = 1234567; in TEST()
60 tv2.tv_usec -= tv1.tv_usec; in TEST()
61 if (tv2.tv_usec < 0) { in TEST()
63 tv2.tv_usec += 1000000; in TEST()
68 ASSERT_LT(tv2.tv_usec, 1000); in TEST()
Dsys_select_test.cpp97 tv.tv_usec = 0; in TEST()
111 ASSERT_NE(0, tv.tv_usec); in TEST()
Dsys_socket_test.cpp87 tv.tv_usec = 0; in RunTest()
217 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()
Dgetentropy_linux.c386 cnt += (int)tv.tv_usec; in getentropy_fallback()
472 cnt += (int)ru.ru_utime.tv_usec; in getentropy_fallback()
518 cnt += (int)ru.ru_utime.tv_usec; in getentropy_fallback()
528 cnt += (int)tv.tv_usec; in getentropy_fallback()
Dndk_cruft.cpp126 ts->tv_usec = fractional_seconds; in strtotimeval()
303 tb->millitm = (tv.tv_usec + 500) / 1000; in ftime()
/bionic/libc/upstream-openbsd/lib/libc/gen/
Dalarm.c45 itp->it_value.tv_usec = 0; in alarm()
48 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.h34 __kernel_suseconds_t tv_usec; member
/bionic/libc/kernel/uapi/drm/
Dexynos_drm.h244 __u32 tv_usec; member
254 __u32 tv_usec; member
Dvmwgfx_drm.h254 uint32_t tv_usec; member
Ddrm.h586 __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.cpp3277 (((long long)t1.tv_sec * 1000000LL) + (long long)t1.tv_usec) -
3278 (((long long)t0.tv_sec * 1000000LL) + (long long)t0.tv_usec)));