Home
last modified time | relevance | path

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

12345678910>>...40

/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/curl/src/
Dtool_util.c30 struct timeval tvnow(void) in tvnow()
42 struct timeval now; in tvnow()
56 struct timeval tvnow(void) in tvnow()
65 struct timeval now; in tvnow()
90 struct timeval tvnow(void) in tvnow()
97 struct timeval now; in tvnow()
104 struct timeval tvnow(void) in tvnow()
109 struct timeval now; in tvnow()
123 long tvdiff(struct timeval newer, struct timeval older) in tvdiff()
/external/ltp/include/
Dtst_timer.h61 static inline long long tst_timeval_to_us(struct timeval t) in tst_timeval_to_us()
69 static inline long long tst_timeval_to_ms(struct timeval t) in tst_timeval_to_ms()
77 static inline struct timeval tst_ms_to_timeval(long long ms) in tst_ms_to_timeval()
79 struct timeval ret; in tst_ms_to_timeval()
90 static inline struct timeval tst_us_to_timeval(long long us) in tst_us_to_timeval()
92 struct timeval ret; in tst_us_to_timeval()
195 static inline struct timeval tst_timeval_diff(struct timeval t1, in tst_timeval_diff()
196 struct timeval t2) in tst_timeval_diff()
198 struct timeval res; in tst_timeval_diff()
212 static inline long long tst_timeval_diff_us(struct timeval t1, in tst_timeval_diff_us()
[all …]
/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);
104 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()
431 static struct timeval tvnow(void) in tvnow()
440 struct timeval now; in tvnow()
465 static struct timeval tvnow(void) in tvnow()
472 struct timeval now; in tvnow()
[all …]
/external/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()
/external/curl/docs/examples/
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()
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()
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/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/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/iperf3/src/
Diperf_util.h43 double timeval_to_double(struct timeval *tv);
45 int timeval_equals(struct timeval *tv0, struct timeval *tv1);
47 double timeval_diff(struct timeval *tv0, struct timeval *tv1);
/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/ltp/testcases/kernel/syscalls/utimes/
Dutimes01.c52 static struct timeval a_tv[2] = { {0, 0}, {1000, 0} };
53 static struct timeval m_tv[2] = { {1000, 0}, {0, 0} };
54 static struct timeval tv[2] = { {1000, 0}, {2000, 0} };
58 struct timeval *times;
82 struct timeval tmp_tv[2]; in utimes_verify()
/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 …]
/external/kernel-headers/original/uapi/linux/
Delfcore.h56 struct timeval pr_utime; /* User time */
57 struct timeval pr_stime; /* System time */
58 struct timeval pr_cutime; /* Cumulative user time */
59 struct timeval pr_cstime; /* Cumulative system time */
/external/google-breakpad/src/common/android/include/sys/
Dprocfs.h81 struct timeval pr_utime;
82 struct timeval pr_stime;
83 struct timeval pr_cutime;
84 struct timeval pr_cstime;

12345678910>>...40