/external/openscreen/platform/impl/ |
D | timeval_posix_unittest.cc | 13 auto timeval = ToTimeval(timespan); in TEST() local 14 EXPECT_EQ(timeval.tv_sec, 0); in TEST() 15 EXPECT_EQ(timeval.tv_usec, 0); in TEST() 18 timeval = ToTimeval(timespan); in TEST() 19 EXPECT_EQ(timeval.tv_sec, 1); in TEST() 20 EXPECT_EQ(timeval.tv_usec, 0); in TEST() 23 timeval = ToTimeval(timespan); in TEST() 24 EXPECT_EQ(timeval.tv_sec, 0); in TEST() 25 EXPECT_EQ(timeval.tv_usec, 1000000 - 1); in TEST() 28 timeval = ToTimeval(timespan); in TEST() [all …]
|
/external/curl/tests/libtest/ |
D | testutil.c | 29 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()
|
D | testutil.h | 26 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/rust/crates/grpcio-sys/grpc/third_party/cares/cares/ |
D | ares__timeval.c | 21 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)
|
D | ares_timeout.c | 27 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()
|
D | ares_private.h | 196 struct timeval timeout; 342 int ares__timedout(struct timeval *now, 343 struct timeval *check); 346 struct timeval *now); 352 struct timeval ares__tvnow(void); 359 long ares__tvdiff(struct timeval t1, struct timeval t2);
|
/external/curl/src/ |
D | tool_util.c | 35 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()
|
D | tool_util.h | 26 struct timeval tvnow(void); 34 long tvdiff(struct timeval t1, struct timeval t2);
|
/external/ltp/include/ |
D | tst_timer.h | 61 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() 231 static inline struct timeval tst_timeval_diff(struct timeval t1, in tst_timeval_diff() 232 struct timeval t2) in tst_timeval_diff() 234 struct timeval res; in tst_timeval_diff() 248 static inline long long tst_timeval_diff_us(struct timeval t1, in tst_timeval_diff_us() [all …]
|
/external/toybox/toys/other/ |
D | hwclock.c | 37 struct timeval timeval; local 53 timeval.tv_sec = xmktime(&tm, utc); 54 timeval.tv_usec = 0; // todo: fixit 59 if (gettimeofday(&timeval, 0)) perror_exit("gettimeofday failed"); 60 if (!(utc ? gmtime_r : localtime_r)(&timeval.tv_sec, &tm)) 77 if (!utc) timeval.tv_sec += tzone.tz_minuteswest * 60; 84 if (settimeofday(&timeval, &tzone)) perror_exit("settimeofday failed");
|
/external/curl/docs/examples/ |
D | imap-multi.c | 41 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()
|
D | pop3-multi.c | 41 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()
|
D | smtp-multi.c | 86 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/iperf3/src/ |
D | iperf_util.h | 43 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/webrtc/system_wrappers/source/ |
D | clock.cc | 48 timeval tv = CurrentTimeVal(); in CurrentNtpTime() 59 timeval tv = CurrentTimeVal(); in CurrentNtpInMilliseconds() 68 virtual timeval CurrentTimeVal() = 0; 70 static void Adjust(const timeval& tv, in Adjust() 93 timeval CurrentTimeVal() override { in CurrentTimeVal() 99 struct timeval tv; in CurrentTimeVal() 127 timeval CurrentTimeVal() override { in CurrentTimeVal() 132 struct timeval tv; in CurrentTimeVal() 217 timeval CurrentTimeVal() override { in CurrentTimeVal() 218 struct timeval tv; in CurrentTimeVal()
|
/external/libevent/ |
D | time-internal.h | 56 long evutil_tv_to_msec_(const struct timeval *tv); 58 void evutil_usleep_(const struct timeval *tv); 86 struct timeval adjust_monotonic_clock; 87 struct timeval last_time; 94 int evutil_gettime_monotonic_(struct evutil_monotonic_timer *mt, struct timeval *tv);
|
D | evutil_time.c | 72 evutil_gettimeofday(struct timeval *tv, struct timezone *tz) in evutil_gettimeofday() 128 evutil_tv_to_msec_(const struct timeval *tv) in evutil_tv_to_msec_() 141 evutil_usleep_(const struct timeval *tv) in evutil_usleep_() 177 struct timeval tv2 = *tv; in evutil_usleep_() 232 struct timeval *tv) in adjust_monotonic_time() 238 struct timeval adjust; in adjust_monotonic_time() 290 struct timeval *tp) in evutil_gettime_monotonic() 349 struct timeval *tp) in evutil_gettime_monotonic_() 405 struct timeval *tp) in evutil_gettime_monotonic_() 553 struct timeval *tp) in evutil_gettime_monotonic_() [all …]
|
/external/libevent/test/ |
D | regress_thread.c | 113 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/e2fsprogs/e2fsck/ |
D | scantest.c | 45 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/ltp/testcases/kernel/syscalls/utimes/ |
D | utimes01.c | 39 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()
|
/external/curl/tests/server/ |
D | util.c | 70 static struct timeval tvnow(void); 104 struct timeval tv; in logmsg() 228 struct timeval pending_tv; in wait_ms() 230 struct timeval initial_tv; in wait_ms() 440 static struct timeval tvnow(void) in tvnow() 452 struct timeval now; in tvnow() 466 static struct timeval tvnow(void) in tvnow() 475 struct timeval now; in tvnow() 500 static struct timeval tvnow(void) in tvnow() 507 struct timeval now; in tvnow() [all …]
|
/external/libevent/include/event2/ |
D | event.h | 403 int event_gettime_monotonic(struct event_base *base, struct timeval *tp); 662 const struct timeval *max_interval, int max_callbacks, 844 int event_base_loopexit(struct event_base *, const struct timeval *); 1209 …ce(struct event_base *, evutil_socket_t, short, event_callback_fn, void *, const struct timeval *); 1233 int event_add(struct event *ev, const struct timeval *timeout); 1307 int event_pending(const struct event *ev, short events, struct timeval *tv); 1512 const struct timeval *event_base_init_common_timeout(struct event_base *base, 1513 const struct timeval *duration); 1634 struct timeval *tv);
|
/external/google-breakpad/src/common/android/include/sys/ |
D | procfs.h | 84 struct timeval pr_utime; 85 struct timeval pr_stime; 86 struct timeval pr_cutime; 87 struct timeval pr_cstime;
|
/external/libevent/sample/ |
D | time-test.c | 38 struct timeval lasttime; 45 struct timeval newtime, difference; in timeout_cb() 59 struct timeval tv; in timeout_cb() 70 struct timeval tv; in main()
|
/external/iputils/ |
D | ping_common.c | 30 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 …]
|