Home
last modified time | relevance | path

Searched refs:timeval (Results 1 – 25 of 956) sorted by relevance

12345678910>>...39

/third_party/pulseaudio/src/pulse/
Dtimeval.h58 struct timeval;
61 struct timeval *pa_gettimeofday(struct timeval *tv);
65 pa_usec_t pa_timeval_diff(const struct timeval *a, const struct timeval *b) PA_GCC_PURE;
68 int pa_timeval_cmp(const struct timeval *a, const struct timeval *b) PA_GCC_PURE;
71 pa_usec_t pa_timeval_age(const struct timeval *tv);
74 struct timeval* pa_timeval_add(struct timeval *tv, pa_usec_t v);
77 struct timeval* pa_timeval_sub(struct timeval *tv, pa_usec_t v);
80 struct timeval* pa_timeval_store(struct timeval *tv, pa_usec_t v);
83 pa_usec_t pa_timeval_load(const struct timeval *tv);
Dtimeval.c37 struct timeval *pa_gettimeofday(struct timeval *tv) { in pa_gettimeofday()
73 pa_usec_t pa_timeval_diff(const struct timeval *a, const struct timeval *b) { in pa_timeval_diff()
81 const struct timeval *c; in pa_timeval_diff()
99 int pa_timeval_cmp(const struct timeval *a, const struct timeval *b) { in pa_timeval_cmp()
118 pa_usec_t pa_timeval_age(const struct timeval *tv) { in pa_timeval_age()
119 struct timeval now; in pa_timeval_age()
125 struct timeval* pa_timeval_add(struct timeval *tv, pa_usec_t v) { in pa_timeval_add()
156 struct timeval* pa_timeval_sub(struct timeval *tv, pa_usec_t v) { in pa_timeval_sub()
187 struct timeval* pa_timeval_store(struct timeval *tv, pa_usec_t v) { in pa_timeval_store()
203 pa_usec_t pa_timeval_load(const struct timeval *tv) { in pa_timeval_load()
Dglib-mainloop.c53 struct timeval timeval; member
278 const struct timeval *tv, in glib_time_new()
296 e->timeval = *tv; in glib_time_new()
302 if (pa_timeval_cmp(tv, &g->cached_next_time_event->timeval) < 0) in glib_time_new()
316 static void glib_time_restart(pa_time_event*e, const struct timeval *tv) { in glib_time_restart()
327 e->timeval = *tv; in glib_time_restart()
335 if (pa_timeval_cmp(tv, &e->mainloop->cached_next_time_event->timeval) < 0) in glib_time_restart()
446 if (!n || pa_timeval_cmp(&t->timeval, &n->timeval) < 0) { in find_next_time_event()
450 if (n->timeval.tv_sec <= 0) in find_next_time_event()
486 struct timeval tvnow; in prepare_func()
[all …]
Dohos_glib-mainloop.c54 struct timeval timeval; member
279 const struct timeval *tv, in glib_time_new()
297 e->timeval = *tv; in glib_time_new()
303 if (pa_timeval_cmp(tv, &g->cached_next_time_event->timeval) < 0) in glib_time_new()
317 static void glib_time_restart(pa_time_event*e, const struct timeval *tv) { in glib_time_restart()
328 e->timeval = *tv; in glib_time_restart()
336 if (pa_timeval_cmp(tv, &e->mainloop->cached_next_time_event->timeval) < 0) in glib_time_restart()
447 if (!n || pa_timeval_cmp(&t->timeval, &n->timeval) < 0) { in find_next_time_event()
451 if (n->timeval.tv_sec <= 0) in find_next_time_event()
487 struct timeval tvnow; in prepare_func()
[all …]
/third_party/curl/tests/libtest/
Dtestutil.c29 struct timeval tutil_tvnow(void) in tutil_tvnow()
36 struct timeval now; in tutil_tvnow()
45 struct timeval tutil_tvnow(void) in tutil_tvnow()
54 struct timeval now; in tutil_tvnow()
79 struct timeval tutil_tvnow(void) in tutil_tvnow()
86 struct timeval now; in tutil_tvnow()
93 struct timeval tutil_tvnow(void) in tutil_tvnow()
98 struct timeval now; in tutil_tvnow()
112 long tutil_tvdiff(struct timeval newer, struct timeval older) in tutil_tvdiff()
124 double tutil_tvdiff_secs(struct timeval newer, struct timeval older) in tutil_tvdiff_secs()
Dtestutil.h26 struct timeval tutil_tvnow(void);
34 long tutil_tvdiff(struct timeval t1, struct timeval t2);
41 double tutil_tvdiff_secs(struct timeval t1, struct timeval t2);
/third_party/node/deps/cares/src/lib/
Dares__timeval.c21 struct timeval ares__tvnow(void) in ares__tvnow()
28 struct timeval now; in ares__tvnow()
37 struct timeval ares__tvnow(void) in ares__tvnow()
46 struct timeval now; in ares__tvnow()
71 struct timeval ares__tvnow(void) in ares__tvnow()
78 struct timeval now; in ares__tvnow()
85 struct timeval ares__tvnow(void) in ares__tvnow()
90 struct timeval now; in ares__tvnow()
105 long ares__tvdiff(struct timeval newer, struct timeval older)
Dares_timeout.c27 static long timeoffset(struct timeval *now, struct timeval *check) in timeoffset()
38 struct timeval *ares_timeout(ares_channel channel, struct timeval *maxtv, in ares_timeout()
39 struct timeval *tvbuf) in ares_timeout()
44 struct timeval now; in ares_timeout()
45 struct timeval nextstop; in ares_timeout()
/third_party/curl/src/
Dtool_util.c35 struct timeval tvnow(void) in tvnow()
37 struct timeval now; in tvnow()
64 struct timeval tvnow(void) in tvnow()
73 struct timeval now; in tvnow()
98 struct timeval tvnow(void) in tvnow()
105 struct timeval now; in tvnow()
112 struct timeval tvnow(void) in tvnow()
117 struct timeval now; in tvnow()
131 long tvdiff(struct timeval newer, struct timeval older) in tvdiff()
/third_party/pulseaudio/src/pulsecore/
Dcore-rtclock.h26 struct timeval;
30 struct timeval *pa_rtclock_get(struct timeval *ts);
32 pa_usec_t pa_rtclock_age(const struct timeval *tv);
42 struct timeval* pa_rtclock_from_wallclock(struct timeval *tv);
51 struct timeval* pa_timeval_rtstore(struct timeval *tv, pa_usec_t v, bool rtclock);
Dcore-rtclock.c59 pa_usec_t pa_rtclock_age(const struct timeval *tv) { in pa_rtclock_age()
60 struct timeval now; in pa_rtclock_age()
66 struct timeval *pa_rtclock_get(struct timeval *tv) { in pa_rtclock_get()
186 struct timeval* pa_rtclock_from_wallclock(struct timeval *tv) { in pa_rtclock_from_wallclock()
187 struct timeval wc_now, rt_now; in pa_rtclock_from_wallclock()
233 static struct timeval* wallclock_from_rtclock(struct timeval *tv) { in wallclock_from_rtclock()
234 struct timeval wc_now, rt_now; in wallclock_from_rtclock()
253 struct timeval* pa_timeval_rtstore(struct timeval *tv, pa_usec_t v, bool rtclock) { in pa_timeval_rtstore()
/third_party/musl/include/sys/
Dtime.h11 int gettimeofday (struct timeval *__restrict, void *__restrict);
18 struct timeval it_interval;
19 struct timeval it_value;
24 int utimes (const char *, const struct timeval [2]);
31 int futimes(int, const struct timeval [2]);
32 int futimesat(int, const char *, const struct timeval [2]);
33 int lutimes(const char *, const struct timeval [2]);
34 int settimeofday(const struct timeval *, const struct timezone *);
35 int adjtime (const struct timeval *, struct timeval *);
/third_party/musl/porting/uniproton/kernel/include/sys/
Dtime.h11 int gettimeofday (struct timeval *__restrict, void *__restrict);
18 struct timeval it_interval;
19 struct timeval it_value;
24 int utimes (const char *, const struct timeval [2]);
31 int futimes(int, const struct timeval [2]);
32 int futimesat(int, const char *, const struct timeval [2]);
33 int lutimes(const char *, const struct timeval [2]);
34 int settimeofday(const struct timeval *, const struct timezone *);
35 int adjtime (const struct timeval *, struct timeval *);
/third_party/musl/porting/liteos_m/kernel/include/sys/
Dtime.h11 int gettimeofday (struct timeval *__restrict, void *__restrict);
18 struct timeval it_interval;
19 struct timeval it_value;
24 int utimes (const char *, const struct timeval [2]);
31 int futimes(int, const struct timeval [2]);
32 int futimesat(int, const char *, const struct timeval [2]);
33 int lutimes(const char *, const struct timeval [2]);
34 int settimeofday(const struct timeval *, const struct timezone *);
35 int adjtime (const struct timeval *, struct timeval *);
/third_party/musl/porting/liteos_m_iccarm/kernel/include/sys/
Dtime.h11 int gettimeofday (struct timeval *__restrict, void *__restrict);
18 struct timeval it_interval;
19 struct timeval it_value;
24 int utimes (const char *, const struct timeval [2]);
31 int futimes(int, const struct timeval [2]);
32 int futimesat(int, const char *, const struct timeval [2]);
33 int lutimes(const char *, const struct timeval [2]);
34 int settimeofday(const struct timeval *, const struct timezone *);
35 int adjtime (const struct timeval *, struct timeval *);
/third_party/musl/porting/liteos_a/kernel/include/sys/
Dtime.h33 int gettimeofday (struct timeval *__restrict, struct timezone *__restrict);
40 struct timeval it_interval;
41 struct timeval it_value;
55 int utimes (const char *, const struct timeval [2]);
58 int futimes(int, const struct timeval [2]);
59 int futimesat(int, const char *, const struct timeval [2]);
60 int lutimes(const char *, const struct timeval [2]);
61 int settimeofday(const struct timeval *, const struct timezone *);
62 int adjtime (const struct timeval *, struct timeval *);
/third_party/musl/ndk_musl_include/sys/
Dtime.h11 int gettimeofday (struct timeval *__restrict, void *__restrict);
18 struct timeval it_interval;
19 struct timeval it_value;
24 int utimes (const char *, const struct timeval [2]);
31 int futimes(int, const struct timeval [2]);
32 int futimesat(int, const char *, const struct timeval [2]);
33 int lutimes(const char *, const struct timeval [2]);
34 int settimeofday(const struct timeval *, const struct timezone *);
/third_party/toybox/toys/other/
Dhwclock.c62 struct timeval timeval; in hwclock_main() local
104 if (gettimeofday(&timeval, 0)) perror_exit("gettimeofday failed"); in hwclock_main()
105 if (!(TT.utc ? gmtime_r : localtime_r)(&timeval.tv_sec, &tm)) in hwclock_main()
117 timeval.tv_sec = time; in hwclock_main()
118 timeval.tv_usec = 0; // todo: fixit in hwclock_main()
124 if (!TT.utc) timeval.tv_sec += tzone.tz_minuteswest * 60; in hwclock_main()
134 if (settimeofday(&timeval, &tzone)) perror_exit("settimeofday failed"); in hwclock_main()
/third_party/musl/porting/linux/user/src/time/
Dgettimeofday.c28 static int gtd_init(struct timeval *tv, void *tz) in gtd_init()
32 int (*f)(struct timeval *, void *) = in gtd_init()
42 int gettimeofday(struct timeval *restrict tv, void *restrict tz) in gettimeofday()
46 int (*f)(struct timeval *, void *) = in gettimeofday()
47 (int (*)(struct timeval *, void *))vdso_gtd; in gettimeofday()
/third_party/e2fsprogs/e2fsck/
Dscantest.c45 struct timeval time_start;
46 struct timeval user_start;
47 struct timeval system_start;
64 static __inline__ float timeval_subtract(struct timeval *tv1, in timeval_subtract()
65 struct timeval *tv2) in timeval_subtract()
74 struct timeval time_end; in print_resource_track()
/third_party/musl/libc-test/src/functionalext/supplement/select/
Dselect.c27 …ime64(int, fd_set *__restrict, fd_set *__restrict, fd_set *__restrict, struct timeval *__restrict);
39 struct timeval timeout; in select_0100()
60 struct timeval timeout; in select_0200()
80 struct timeval timeout; in select_0300()
100 struct timeval timeout; in select_time64_0100()
/third_party/ltp/testcases/kernel/syscalls/utimes/
Dutimes01.c39 static struct timeval a_tv[2] = { {0, 0}, {1000, 0} };
40 static struct timeval m_tv[2] = { {1000, 0}, {0, 0} };
41 static struct timeval tv[2] = { {1000, 0}, {2000, 0} };
45 struct timeval *times;
69 struct timeval tmp_tv[2]; in utimes_verify()
/third_party/musl/libc-test/src/functionalext/supplement/linux/
Dsettimeofday.c22 extern int __settimeofday_time64(const struct timeval *, const struct timezone *);
44 struct timeval tv; in settimeofday_0200()
61 struct timeval tv; in settimeofday_0300()
78 struct timeval tv; in settimeofday_time64_0200()
/third_party/musl/src/misc/
Dgetrusage.c13 ru->ru_utime = (struct timeval) in getrusage()
15 ru->ru_stime = (struct timeval) in getrusage()
29 ru->ru_utime = (struct timeval) in getrusage()
31 ru->ru_stime = (struct timeval) in getrusage()
/third_party/musl/src/linux/
Dwait4.c16 ru->ru_utime = (struct timeval) in wait4()
18 ru->ru_stime = (struct timeval) in wait4()
33 ru->ru_utime = (struct timeval) in wait4()
35 ru->ru_stime = (struct timeval) in wait4()

12345678910>>...39