/bionic/libc/include/sys/ |
D | time.h | 46 ((a)->tv_sec = (a)->tv_usec = 0) 49 ((a)->tv_sec != 0 || (a)->tv_usec != 0) 52 ((a)->tv_sec == (b)->tv_sec \ 54 : (a)->tv_sec op (b)->tv_sec) 58 (res)->tv_sec = (a)->tv_sec + (b)->tv_sec; \ 62 (res)->tv_sec += 1; \ 68 (res)->tv_sec = (a)->tv_sec - (b)->tv_sec; \ 72 (res)->tv_sec -= 1; \
|
/bionic/libc/bionic/ |
D | bionic_time_conversions.cpp | 33 ts.tv_sec = tv.tv_sec; in timespec_from_timeval() 44 ts.tv_sec = ms / 1000; in timespec_from_ms() 49 tv.tv_sec = ts.tv_sec; in timeval_from_timespec()
|
D | pthread_internals.cpp | 75 ts->tv_sec = abstime->tv_sec - ts->tv_sec; in __timespec_from_absolute() 78 ts->tv_sec--; in __timespec_from_absolute() 81 if ((ts->tv_nsec < 0) || (ts->tv_sec < 0)) { in __timespec_from_absolute()
|
D | semaphore.c | 284 abs_timeout->tv_sec < 0 || in sem_timedwait() 300 ts.tv_sec = abs_timeout->tv_sec - ts.tv_sec; in sem_timedwait() 304 ts.tv_sec -= 1; in sem_timedwait() 307 if (ts.tv_sec < 0 || ts.tv_nsec < 0) { in sem_timedwait()
|
D | clock.cpp | 41 return (ts.tv_sec * CLOCKS_PER_SEC) + (ts.tv_nsec / (NS_PER_S / CLOCKS_PER_SEC)); in clock()
|
D | getentropy_linux.c | 385 cnt += (int)tv.tv_sec; in getentropy_fallback() 401 ts.tv_sec = 0; in getentropy_fallback() 471 cnt += (int)ru.ru_utime.tv_sec; in getentropy_fallback() 517 cnt += (int)ru.ru_utime.tv_sec; in getentropy_fallback() 527 cnt += (int)tv.tv_sec; in getentropy_fallback()
|
D | libc_logging.cpp | 484 uint32_t tv_sec; member 508 realtime_ts.tv_sec = ts.tv_sec; in __libc_write_log() 570 realtime_ts.tv_sec = ts.tv_sec; in __libc_android_log_event()
|
D | ndk_cruft.cpp | 101 ts->tv_sec = strtoumax(str, &s, 10); in strtotimeval() 287 tb->time = tv.tv_sec; in ftime()
|
D | pthread_mutex.cpp | 727 abs_timeout.tv_sec += ms / 1000; in pthread_mutex_lock_timeout_np() 730 abs_timeout.tv_sec++; in pthread_mutex_lock_timeout_np()
|
/bionic/libc/upstream-openbsd/lib/libc/gen/ |
D | alarm.c | 44 itp->it_value.tv_sec = secs; in alarm() 49 oitv.it_value.tv_sec++; in alarm() 50 return (oitv.it_value.tv_sec); in alarm()
|
D | time.c | 42 *t = (time_t)tt.tv_sec; in time() 43 return (tt.tv_sec); in time()
|
/bionic/tests/ |
D | sys_stat_test.cpp | 34 times[0].tv_sec = 123; in TEST() 36 times[1].tv_sec = 456; in TEST() 42 ASSERT_EQ(times[0].tv_sec, static_cast<long>(sb.st_atime)); in TEST() 43 ASSERT_EQ(times[1].tv_sec, static_cast<long>(sb.st_mtime)); in TEST() 50 times[0].tv_sec = 123; in TEST() 52 times[1].tv_sec = 456; in TEST()
|
D | sys_time_test.cpp | 59 tv2.tv_sec -= tv1.tv_sec; in TEST() 62 --tv2.tv_sec; in TEST() 67 ASSERT_EQ(0, tv2.tv_sec); in TEST()
|
D | sys_select_test.cpp | 96 tv.tv_sec = -1; in TEST() 102 tv.tv_sec = 1; in TEST() 110 ASSERT_EQ(0, tv.tv_sec); in TEST() 142 tv.tv_sec = -1; in TEST() 148 tv.tv_sec = 1; in TEST() 156 ASSERT_EQ(1, tv.tv_sec); in TEST()
|
D | time_test.cpp | 138 ts.it_value.tv_sec = value_s; in SetTime() 140 ts.it_interval.tv_sec = interval_s; in SetTime() 194 ts.it_value.tv_sec = 0; in TEST() 196 ts.it_interval.tv_sec = 0; in TEST() 368 ts.it_value.tv_sec = 0; in TEST() 370 ts.it_interval.tv_sec = 0; in TEST() 395 ts2.tv_sec -= ts1.tv_sec; in TEST() 398 --ts2.tv_sec; in TEST() 403 ASSERT_EQ(0, ts2.tv_sec); in TEST()
|
D | sys_socket_test.cpp | 96 tv.tv_sec = 5; in RunTest() 180 ts.tv_sec = 5; in TestRecvMMsg() 248 tv.tv_sec = 5; in TestSendMMsg()
|
/bionic/libc/upstream-netbsd/lib/libc/isc/ |
D | ev_timers.c | 77 x.tv_sec = sec; in evConsTime() 86 x.tv_sec = addend1.tv_sec + addend2.tv_sec; in evAddTime() 89 x.tv_sec++; in evAddTime() 99 x.tv_sec = minuend.tv_sec - subtrahend.tv_sec; in evSubTime() 104 x.tv_sec--; in evSubTime() 112 time_t s = a.tv_sec - b.tv_sec; in evCmpTime() 170 ts.tv_sec = tv.tv_sec; in evTimeSpec() 179 tv.tv_sec = ts.tv_sec; in evTimeVal() 199 (long)due.tv_sec, due.tv_nsec, in evSetTimer() 200 (long)inter.tv_sec, inter.tv_nsec); in evSetTimer() [all …]
|
/bionic/libc/upstream-netbsd/lib/libc/gen/ |
D | utime.c | 59 tv[0].tv_sec = times->actime; in utime() 60 tv[1].tv_sec = times->modtime; in utime()
|
/bionic/libc/upstream-freebsd/lib/libc/gen/ |
D | sleep.c | 56 time_to_sleep.tv_sec = seconds; in __sleep() 62 return (time_remaining.tv_sec + in __sleep()
|
D | usleep.c | 47 time_to_sleep.tv_sec = useconds / 1000000; in __usleep()
|
/bionic/libc/kernel/uapi/linux/ |
D | time.h | 26 __kernel_time_t tv_sec; member 32 __kernel_time_t tv_sec; member
|
/bionic/libc/include/ |
D | utmp.h | 85 #define ut_time ut_tv.tv_sec
|
/bionic/libc/kernel/uapi/drm/ |
D | exynos_drm.h | 264 __u32 tv_sec; member 274 __u32 tv_sec; member
|
D | msm_drm.h | 30 int64_t tv_sec; member
|
/bionic/benchmarks/ |
D | benchmark_main.cpp | 53 t.tv_sec = t.tv_nsec = 0; in NanoTime() 55 return static_cast<int64_t>(t.tv_sec) * 1000000000LL + t.tv_nsec; in NanoTime()
|