Home
last modified time | relevance | path

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

12345678910>>...41

/external/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);
/external/ltp/include/
Dtst_timer.h56 static inline long long tst_timeval_to_us(struct timeval t) in tst_timeval_to_us()
64 static inline long long tst_timeval_to_ms(struct timeval t) in tst_timeval_to_ms()
72 static inline struct timeval tst_ms_to_timeval(long long ms) in tst_ms_to_timeval()
74 struct timeval ret; in tst_ms_to_timeval()
85 static inline struct timeval tst_us_to_timeval(long long us) in tst_us_to_timeval()
87 struct timeval ret; in tst_us_to_timeval()
184 static inline struct timeval tst_timeval_diff(struct timeval t1, in tst_timeval_diff()
185 struct timeval t2) in tst_timeval_diff()
187 struct timeval res; in tst_timeval_diff()
201 static inline long long tst_timeval_diff_us(struct timeval t1, in tst_timeval_diff_us()
[all …]
/external/curl/src/
Dtool_util.c30 struct timeval tvnow(void) in tvnow()
42 struct timeval now; in tvnow()
55 struct timeval tvnow(void) in tvnow()
64 struct timeval now; in tvnow()
89 struct timeval tvnow(void) in tvnow()
96 struct timeval now; in tvnow()
103 struct timeval tvnow(void) in tvnow()
108 struct timeval now; in tvnow()
122 long tvdiff(struct timeval newer, struct timeval older) in tvdiff()
/external/fio/
Dfio_time.h7 extern uint64_t utime_since(const struct timeval *,const struct timeval *);
8 extern uint64_t utime_since_now(const struct timeval *);
9 extern uint64_t mtime_since(const struct timeval *, const struct timeval *);
10 extern uint64_t mtime_since_now(const struct timeval *);
11 extern uint64_t time_since_now(const struct timeval *);
17 extern void fill_start_time(struct timeval *);
22 extern void timeval_add_msec(struct timeval *, unsigned int);
Dtime.c6 static struct timeval genesis;
9 void timeval_add_msec(struct timeval *tv, unsigned int msec) in timeval_add_msec()
31 struct timeval start; in usec_spin()
44 struct timeval tv; in usec_sleep()
114 struct timeval tv; in ramp_time_over()
141 struct timeval tv; in fio_time_init()
166 struct timeval tv; in set_epoch_time()
173 void fill_start_time(struct timeval *t) in fill_start_time()
/external/ltp/utils/ffsb-6.0-rc2/
Dutil.c106 struct timeval tv = { 0, 0 }; in ffsb_sleep()
134 struct timeval tvsub(struct timeval t1, struct timeval t0) in tvsub()
136 struct timeval tdiff; in tvsub()
144 struct timeval tvadd(struct timeval t1, struct timeval t0) in tvadd()
146 struct timeval tdiff; in tvadd()
154 double tvtodouble(struct timeval *t) in tvtodouble()
237 struct timeval starttime, endtime, difftime; in ffsb_sync()
265 struct timeval tv = { 0, 0 }; in ffsb_milli_sleep()
274 struct timeval tv = { 0, 0 }; in ffsb_micro_sleep()
318 struct timeval starttime, endtime, junk, difftime; in ffsb_bench_gettimeofday()
[all …]
Dutil.h74 struct timeval tvsub(struct timeval t1, struct timeval t0);
75 struct timeval tvadd(struct timeval t1, struct timeval t0);
76 double tvtodouble(struct timeval *t);
Dfh.c50 static void do_stats(struct timeval *start, struct timeval *end, in do_stats()
53 struct timeval diff; in do_stats()
73 struct timeval start, end; in fhopenhelper()
140 struct timeval start, end; in fhread()
166 struct timeval start, end; in fhwrite()
193 struct timeval start, end; in fhseek()
226 struct timeval start, end; in fhclose()
243 struct timeval start, end; in fhstat()
/external/curl/tests/server/
Dutil.c70 static struct timeval tvnow(void);
105 struct timeval tv; in logmsg()
216 struct timeval pending_tv; in wait_ms()
218 struct timeval initial_tv; in wait_ms()
405 static struct timeval tvnow(void) in tvnow()
417 struct timeval now; in tvnow()
430 static struct timeval tvnow(void) in tvnow()
439 struct timeval now; in tvnow()
464 static struct timeval tvnow(void) in tvnow()
471 struct timeval now; in tvnow()
[all …]
/external/libevent/test/
Dregress_thread.c113 struct timeval tv; in basic_thread()
149 struct timeval tv; in sigchld_cb()
171 struct timeval tv; in thread_basic()
262 struct timeval delay;
263 struct timeval alerted_at;
292 struct timeval tv_signal, tv_timeout, tv_broadcast; in thread_conditions_simple()
297 struct timeval launched_at; in thread_conditions_simple()
350 const struct timeval *target_delay; in thread_conditions_simple()
351 struct timeval target_time, actual_delay; in thread_conditions_simple()
395 struct timeval tv; in SLEEP_MS()
[all …]
/external/toybox/toys/other/
Dhwclock.c60 struct timeval timeval; in hwclock_main() local
102 if (gettimeofday(&timeval, 0)) perror_exit("gettimeofday failed"); in hwclock_main()
103 if (!(TT.utc ? gmtime_r : localtime_r)(&timeval.tv_sec, &tm)) in hwclock_main()
115 timeval.tv_sec = time; in hwclock_main()
116 timeval.tv_usec = 0; // todo: fixit in hwclock_main()
122 if (!TT.utc) timeval.tv_sec += tzone.tz_minuteswest * 60; in hwclock_main()
132 if (settimeofday(&timeval, &tzone)) perror_exit("settimeofday failed"); in hwclock_main()
/external/curl/docs/examples/
Dimap-multi.c41 static struct timeval tvnow(void) in tvnow()
43 struct timeval now; in tvnow()
52 static long tvdiff(struct timeval newer, struct timeval older) in tvdiff()
63 struct timeval mp_start; in main()
92 struct timeval timeout; in main()
140 struct timeval wait = { 0, 100 * 1000 }; /* 100ms */ in main()
Dpop3-multi.c41 static struct timeval tvnow(void) in tvnow()
43 struct timeval now; in tvnow()
52 static long tvdiff(struct timeval newer, struct timeval older) in tvdiff()
63 struct timeval mp_start; in main()
92 struct timeval timeout; in main()
140 struct timeval wait = { 0, 100 * 1000 }; /* 100ms */ in main()
Dsmtp-multi.c86 static struct timeval tvnow(void) in tvnow()
88 struct timeval now; in tvnow()
97 static long tvdiff(struct timeval newer, struct timeval older) in tvdiff()
108 struct timeval mp_start; in main()
159 struct timeval timeout; in main()
207 struct timeval wait = { 0, 100 * 1000 }; /* 100ms */ in main()
/external/libxcam/xcore/
Dxcam_obj_debug.h32 static struct timeval last_sys_time; \
33 static struct timeval first_sys_time; \
42 struct timeval cur_sys_time; \
58 static struct timeval name##_start_time; \
59 static struct timeval name##_end_time; \
77 struct timeval _profiling_start_time; \
90 struct timeval profiling_now; \
/external/webrtc/webrtc/base/
Dtimeutils.cc92 struct timeval { struct
98 static int gettimeofday(struct timeval *tv, void *tz) { in gettimeofday()
128 struct timeval timeval; in CurrentTmTime() local
129 if (gettimeofday(&timeval, NULL) < 0) { in CurrentTmTime()
131 timeval.tv_sec = timeval.tv_usec = 0; in CurrentTmTime()
133 time_t secs = timeval.tv_sec; in CurrentTmTime()
135 *microseconds = timeval.tv_usec; in CurrentTmTime()
/external/strace/
Ddefs.h216 struct timeval stime; /* System time usage as of last process wait */
217 struct timeval dtime; /* Delta for system time usage */
218 struct timeval etime; /* Syscall entry time */
391 extern int syscall_exiting_decode(struct tcb *, struct timeval *);
392 extern int syscall_exiting_trace(struct tcb *, struct timeval, int);
395 extern void count_syscall(struct tcb *, const struct timeval *);
707 extern int tv_nz(const struct timeval *);
708 extern int tv_cmp(const struct timeval *, const struct timeval *);
709 extern double tv_float(const struct timeval *);
710 extern void tv_add(struct timeval *, const struct timeval *, const struct timeval *);
[all …]
Dcount.c42 struct timeval time;
49 static struct timeval shortest = { 1000000, 0 };
52 count_syscall(struct tcb *tcp, const struct timeval *syscall_exiting_tv) in count_syscall()
54 struct timeval wtv; in count_syscall()
55 struct timeval *tv = &wtv; in count_syscall()
74 static struct timeval one_tick = { -1, 0 }; in count_syscall()
130 static struct timeval overhead = { -1, -1 };
164 struct timeval tv_cum, dtv; in call_summary_pers()
/external/libevent/
Dtime-internal.h56 long evutil_tv_to_msec_(const struct timeval *tv);
57 void evutil_usleep_(const struct timeval *tv);
85 struct timeval adjust_monotonic_clock;
86 struct timeval last_time;
91 int evutil_gettime_monotonic_(struct evutil_monotonic_timer *mt, struct timeval *tv);
Devutil_time.c69 evutil_gettimeofday(struct timeval *tv, struct timezone *tz) in evutil_gettimeofday()
110 evutil_tv_to_msec_(const struct timeval *tv) in evutil_tv_to_msec_()
123 evutil_usleep_(const struct timeval *tv) in evutil_usleep_()
187 struct timeval *tv) in adjust_monotonic_time()
193 struct timeval adjust; in adjust_monotonic_time()
245 struct timeval *tp) in evutil_gettime_monotonic()
304 struct timeval *tp) in evutil_gettime_monotonic_()
360 struct timeval *tp) in evutil_gettime_monotonic_()
508 struct timeval *tp) in evutil_gettime_monotonic_()
568 struct timeval *tp) in evutil_gettime_monotonic_()
/external/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()
/external/webrtc/webrtc/system_wrappers/source/
Dclock.cc51 timeval tv = CurrentTimeVal(); in CurrentNtp()
60 timeval tv = CurrentTimeVal(); in CurrentNtpInMilliseconds()
69 virtual timeval CurrentTimeVal() const = 0;
71 static void Adjust(const timeval& tv, uint32_t* adjusted_s, in Adjust()
105 timeval CurrentTimeVal() const override { in CurrentTimeVal()
110 struct timeval tv; in CurrentTimeVal()
196 timeval CurrentTimeVal() const override { in CurrentTimeVal()
197 struct timeval tv; in CurrentTimeVal()
/external/libevent/include/event2/
Devent.h403 int event_gettime_monotonic(struct event_base *base, struct timeval *tp);
662 const struct timeval *max_interval, int max_callbacks,
847 int event_base_loopexit(struct event_base *, const struct timeval *);
1206 …ce(struct event_base *, evutil_socket_t, short, event_callback_fn, void *, const struct timeval *);
1230 int event_add(struct event *ev, const struct timeval *timeout);
1310 int event_pending(const struct event *ev, short events, struct timeval *tv);
1515 const struct timeval *event_base_init_common_timeout(struct event_base *base,
1516 const struct timeval *duration);
1637 struct timeval *tv);
/external/iputils/
Dping_common.c30 struct timeval start_time, cur_time;
455 struct timeval tv; in print_timestamp()
486 struct timeval tv; in pinger()
632 struct timeval tv; in setup()
803 struct timeval *recv_timep = NULL; in main_loop()
804 struct timeval recv_time; in main_loop()
837 if (c->cmsg_len < CMSG_LEN(sizeof(struct timeval))) in main_loop()
839 recv_timep = (struct timeval*)CMSG_DATA(c); in main_loop()
872 int csfailed, struct timeval *tv, char *from, in gather_statistics()
883 if (timing && cc >= 8+sizeof(struct timeval)) { in gather_statistics()
[all …]

12345678910>>...41