Home
last modified time | relevance | path

Searched refs:tv_sec (Results 1 – 25 of 33) sorted by relevance

12

/bionic/libc/include/sys/
Dtime.h46 ((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/
Dbionic_time_conversions.cpp33 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()
Dpthread_internals.cpp75 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()
Dsemaphore.c284 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()
Dclock.cpp41 return (ts.tv_sec * CLOCKS_PER_SEC) + (ts.tv_nsec / (NS_PER_S / CLOCKS_PER_SEC)); in clock()
Dgetentropy_linux.c385 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()
Dlibc_logging.cpp484 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()
Dndk_cruft.cpp101 ts->tv_sec = strtoumax(str, &s, 10); in strtotimeval()
287 tb->time = tv.tv_sec; in ftime()
Dpthread_mutex.cpp727 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/
Dalarm.c44 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()
Dtime.c42 *t = (time_t)tt.tv_sec; in time()
43 return (tt.tv_sec); in time()
/bionic/tests/
Dsys_stat_test.cpp34 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()
Dsys_time_test.cpp59 tv2.tv_sec -= tv1.tv_sec; in TEST()
62 --tv2.tv_sec; in TEST()
67 ASSERT_EQ(0, tv2.tv_sec); in TEST()
Dsys_select_test.cpp96 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()
Dtime_test.cpp138 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()
Dsys_socket_test.cpp96 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/
Dev_timers.c77 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/
Dutime.c59 tv[0].tv_sec = times->actime; in utime()
60 tv[1].tv_sec = times->modtime; in utime()
/bionic/libc/upstream-freebsd/lib/libc/gen/
Dsleep.c56 time_to_sleep.tv_sec = seconds; in __sleep()
62 return (time_remaining.tv_sec + in __sleep()
Dusleep.c47 time_to_sleep.tv_sec = useconds / 1000000; in __usleep()
/bionic/libc/kernel/uapi/linux/
Dtime.h26 __kernel_time_t tv_sec; member
32 __kernel_time_t tv_sec; member
/bionic/libc/include/
Dutmp.h85 #define ut_time ut_tv.tv_sec
/bionic/libc/kernel/uapi/drm/
Dexynos_drm.h264 __u32 tv_sec; member
274 __u32 tv_sec; member
Dmsm_drm.h30 int64_t tv_sec; member
/bionic/benchmarks/
Dbenchmark_main.cpp53 t.tv_sec = t.tv_nsec = 0; in NanoTime()
55 return static_cast<int64_t>(t.tv_sec) * 1000000000LL + t.tv_nsec; in NanoTime()

12