/external/dhcpcd-6.8.2/ |
D | common.h | 62 #define timespecclear(tsp) (tsp)->tv_sec = (time_t)((tsp)->tv_nsec = 0L) 63 #define timespecisset(tsp) ((tsp)->tv_sec || (tsp)->tv_nsec) 65 (((tsp)->tv_sec == (usp)->tv_sec) ? \ 67 ((tsp)->tv_sec cmp (usp)->tv_sec)) 70 (vsp)->tv_sec = (tsp)->tv_sec + (usp)->tv_sec; \ 73 (vsp)->tv_sec++; \ 79 (vsp)->tv_sec = (tsp)->tv_sec - (usp)->tv_sec; \ 82 (vsp)->tv_sec--; \ 89 ((double)(tv)->tv_sec + (double)((tv)->tv_nsec) / 1000000000.0) 92 (tv)->tv_sec++; \ [all …]
|
/external/curl/lib/ |
D | timeval.c | 38 now.tv_sec = milliseconds / 1000; in curlx_tvnow() 42 now.tv_sec = (long) (milliseconds / 1000); in curlx_tvnow() 63 now.tv_sec = tsnow.tv_sec; in curlx_tvnow() 76 now.tv_sec = (long)time(NULL); in curlx_tvnow() 105 now.tv_sec = (long)time(NULL); in curlx_tvnow() 120 return (newer.tv_sec-older.tv_sec)*1000+ in curlx_tvdiff() 131 if(newer.tv_sec != older.tv_sec) in curlx_tvdiff_secs() 132 return (double)(newer.tv_sec-older.tv_sec)+ in curlx_tvdiff_secs() 141 return t1.tv_sec; in Curl_tvlong()
|
/external/curl/tests/libtest/ |
D | testutil.c | 38 now.tv_sec = milliseconds / 1000; in tutil_tvnow() 57 now.tv_sec = tsnow.tv_sec; in tutil_tvnow() 70 now.tv_sec = (long)time(NULL); in tutil_tvnow() 99 now.tv_sec = (long)time(NULL); in tutil_tvnow() 114 return (newer.tv_sec-older.tv_sec)*1000+ in tutil_tvdiff() 125 if(newer.tv_sec != older.tv_sec) in tutil_tvdiff_secs() 126 return (double)(newer.tv_sec-older.tv_sec)+ in tutil_tvdiff_secs() 135 return t1.tv_sec; in tutil_tvlong()
|
/external/curl/src/ |
D | tool_util.c | 48 now.tv_sec = (long)(milliseconds / 1000); in tool_tvnow() 67 now.tv_sec = tsnow.tv_sec; in tool_tvnow() 80 now.tv_sec = (long)time(NULL); in tool_tvnow() 109 now.tv_sec = (long)time(NULL); in tool_tvnow() 124 return (newer.tv_sec-older.tv_sec)*1000+ in tool_tvdiff() 135 if(newer.tv_sec != older.tv_sec) in tool_tvdiff_secs() 136 return (double)(newer.tv_sec-older.tv_sec)+ in tool_tvdiff_secs() 145 return t1.tv_sec; in tool_tvlong()
|
/external/compiler-rt/test/sanitizer_common/TestCases/Linux/ |
D | timerfd.cc | 15 its.it_value.tv_sec = 0; in main() 17 its.it_interval.tv_sec = its.it_value.tv_sec; in main() 26 assert(its2.it_interval.tv_sec == its.it_interval.tv_sec); in main() 28 assert(its2.it_value.tv_sec <= its.it_value.tv_sec); in main() 34 assert(its3.it_interval.tv_sec == its.it_interval.tv_sec); in main() 36 assert(its3.it_value.tv_sec <= its.it_value.tv_sec); in main()
|
/external/strace/tests/ |
D | clock_nanosleep.c | 55 .ts = { .tv_sec = 0xc0de2, .tv_nsec = 0xc0de3 }, in main() 68 (intmax_t) req.ts.tv_sec, (intmax_t) req.ts.tv_nsec); in main() 78 (intmax_t) req.ts.tv_sec, (intmax_t) req.ts.tv_nsec, &rem.ts); in main() 85 (intmax_t) req.ts.tv_sec, (intmax_t) req.ts.tv_nsec, &rem.ts); in main() 96 (intmax_t) itv.it_interval.tv_sec, in main() 98 (intmax_t) itv.it_value.tv_sec, in main() 106 (intmax_t) req.ts.tv_sec, (intmax_t) req.ts.tv_nsec, in main() 107 (intmax_t) rem.ts.tv_sec, (intmax_t) rem.ts.tv_nsec); in main() 113 (intmax_t) req.ts.tv_sec, (intmax_t) req.ts.tv_nsec); in main() 115 ++req.ts.tv_sec; in main() [all …]
|
D | nanosleep.c | 49 .ts = { .tv_sec = 0xc0de2, .tv_nsec = 0xc0de3 }, in main() 59 (intmax_t) req.ts.tv_sec, (intmax_t) req.ts.tv_nsec); in main() 68 (intmax_t) req.ts.tv_sec, (intmax_t) req.ts.tv_nsec, &rem.ts); in main() 74 (intmax_t) req.ts.tv_sec, (intmax_t) req.ts.tv_nsec, &rem.ts); in main() 85 (intmax_t) itv.it_interval.tv_sec, in main() 87 (intmax_t) itv.it_value.tv_sec, in main() 95 (intmax_t) req.ts.tv_sec, (intmax_t) req.ts.tv_nsec, in main() 96 (intmax_t) rem.ts.tv_sec, (intmax_t) rem.ts.tv_nsec); in main()
|
D | xetitimer.c | 54 (intmax_t) new.itv.it_interval.tv_sec, in main() 56 (intmax_t) new.itv.it_value.tv_sec, in main() 58 (intmax_t) old.itv.it_interval.tv_sec, in main() 60 (intmax_t) old.itv.it_value.tv_sec, in main() 68 (intmax_t) old.itv.it_interval.tv_sec, in main() 70 (intmax_t) old.itv.it_value.tv_sec, in main()
|
D | timerfd_xettime.c | 71 (intmax_t) new.its.it_interval.tv_sec, in main() 73 (intmax_t) new.its.it_value.tv_sec, in main() 75 (intmax_t) old.its.it_interval.tv_sec, in main() 77 (intmax_t) old.its.it_value.tv_sec, in main() 85 (intmax_t) old.its.it_interval.tv_sec, in main() 87 (intmax_t) old.its.it_value.tv_sec, in main()
|
D | timer_xettime.c | 74 (intmax_t) new.its.it_interval.tv_sec, in main() 76 (intmax_t) new.its.it_value.tv_sec, in main() 78 (intmax_t) old.its.it_interval.tv_sec, in main() 80 (intmax_t) old.its.it_value.tv_sec, in main() 89 (intmax_t) old.its.it_interval.tv_sec, in main() 91 (intmax_t) old.its.it_value.tv_sec, in main()
|
/external/ltrace/ |
D | summary.c | 61 diff.tv_sec = tv.tv_sec - start.tv_sec; in calc_time_spent() 65 diff.tv_sec--; in calc_time_spent() 82 data->tot_usecs += 1000000 * st->tv.tv_sec; in fill_struct() 90 if (en2->tv.tv_sec - en1->tv.tv_sec) in compar() 91 return en2->tv.tv_sec - en1->tv.tv_sec; in compar() 102 c = 1000000 * (int)entry->tv.tv_sec + in dump_one() 108 (int)entry->tv.tv_sec, (int)entry->tv.tv_usec, in dump_one() 194 st->tv.tv_sec++; in summary_account_call() 199 st->tv.tv_sec += spent.tm.tv_sec; in summary_account_call()
|
/external/libchrome/base/synchronization/ |
D | condition_variable_posix.cc | 53 ts.tv_sec = 0; in ~ConditionVariable() 80 relative_time.tv_sec = usecs / Time::kMicrosecondsPerSecond; in TimedWait() 98 absolute_time.tv_sec = now.tv_sec; in TimedWait() 103 absolute_time.tv_sec = now.tv_sec; in TimedWait() 107 absolute_time.tv_sec += relative_time.tv_sec; in TimedWait() 109 absolute_time.tv_sec += absolute_time.tv_nsec / Time::kNanosecondsPerSecond; in TimedWait() 111 DCHECK_GE(absolute_time.tv_sec, now.tv_sec); // Overflow paranoia in TimedWait()
|
/external/tlsdate/src/ |
D | tlsdate-setter.c | 116 ssize_t bytes = read (time_fd, &tv.tv_sec, sizeof (tv.tv_sec)); in time_setter_coprocess() 131 if (bytes != sizeof (tv.tv_sec)) in time_setter_coprocess() 133 if (tv.tv_sec < 0) in time_setter_coprocess() 136 tv.tv_sec = -tv.tv_sec; in time_setter_coprocess() 139 if (tv.tv_sec == 0) in time_setter_coprocess() 144 if (is_sane_time (tv.tv_sec)) in time_setter_coprocess() 165 save_timestamp_to_fd (save_fd, tv.tv_sec)) in time_setter_coprocess()
|
/external/c-ares/ |
D | ares__timeval.c | 30 now.tv_sec = milliseconds / 1000; in ares__tvnow() 49 now.tv_sec = tsnow.tv_sec; in ares__tvnow() 62 now.tv_sec = (long)time(NULL); in ares__tvnow() 91 now.tv_sec = (long)time(NULL); in ares__tvnow() 107 return (newer.tv_sec-older.tv_sec)*1000+
|
/external/dbus/bus/ |
D | expirelist.c | 127 long tv_sec, in do_expiration_with_monotonic_time() argument 148 tv_sec, tv_usec); in do_expiration_with_monotonic_time() 195 long tv_sec, tv_usec; in bus_expirelist_expire() local 197 _dbus_get_monotonic_time (&tv_sec, &tv_usec); in bus_expirelist_expire() 199 next_interval = do_expiration_with_monotonic_time (list, tv_sec, tv_usec); in bus_expirelist_expire() 307 time_add_milliseconds (long *tv_sec, in time_add_milliseconds() argument 311 *tv_sec = *tv_sec + milliseconds / 1000; in time_add_milliseconds() 316 *tv_sec += 1; in time_add_milliseconds() 325 long tv_sec, tv_usec; in bus_expire_list_test() local 343 _dbus_get_monotonic_time (&tv_sec, &tv_usec); in bus_expire_list_test() [all …]
|
/external/avahi/avahi-common/ |
D | timeval.c | 34 if (a->tv_sec < b->tv_sec) in avahi_timeval_compare() 37 if (a->tv_sec > b->tv_sec) in avahi_timeval_compare() 56 return ((AvahiUsec) a->tv_sec - b->tv_sec)*1000000 + a->tv_usec - b->tv_usec; in avahi_timeval_diff() 67 a->tv_sec += (long) (-1 + (u / 1000000)); in avahi_timeval_add() 70 a->tv_sec += (long) (u / 1000000); in avahi_timeval_add()
|
/external/autotest/client/bin/input/ |
D | input_event_player.py | 34 self.tv_sec = None 57 if not self.tv_sec: 58 self.tv_sec = event.tv_sec 60 delta = event.tv_sec - self.tv_sec 65 self.tv_sec = event.tv_sec
|
/external/boringssl/src/ssl/ |
D | d1_lib.c | 163 if (ssl->d1->next_timeout.tv_sec == 0 && ssl->d1->next_timeout.tv_usec == 0) { in dtls1_start_timer() 171 ssl->d1->next_timeout.tv_sec += ssl->d1->timeout_duration; in dtls1_start_timer() 182 if (ssl->d1->next_timeout.tv_sec == 0 && ssl->d1->next_timeout.tv_usec == 0) { in DTLSv1_get_timeout() 191 if (ssl->d1->next_timeout.tv_sec < timenow.tv_sec || in DTLSv1_get_timeout() 192 (ssl->d1->next_timeout.tv_sec == timenow.tv_sec && in DTLSv1_get_timeout() 200 out->tv_sec -= timenow.tv_sec; in DTLSv1_get_timeout() 203 out->tv_sec--; in DTLSv1_get_timeout() 209 if (out->tv_sec == 0 && out->tv_usec < 15000) { in DTLSv1_get_timeout() 225 if (timeleft.tv_sec > 0 || timeleft.tv_usec > 0) { in dtls1_is_timer_expired() 303 out_clock->tv_sec = time.time; in get_current_time()
|
/external/libevent/include/event2/ |
D | util.h | 384 (vvp)->tv_sec = (tvp)->tv_sec + (uvp)->tv_sec; \ 387 (vvp)->tv_sec++; \ 393 (vvp)->tv_sec = (tvp)->tv_sec - (uvp)->tv_sec; \ 396 (vvp)->tv_sec--; \ 405 #define evutil_timerclear(tvp) (tvp)->tv_sec = (tvp)->tv_usec = 0 412 (((tvp)->tv_sec == (uvp)->tv_sec) ? \ 414 ((tvp)->tv_sec cmp (uvp)->tv_sec)) 419 #define evutil_timerisset(tvp) ((tvp)->tv_sec || (tvp)->tv_usec)
|
/external/curl/docs/examples/ |
D | pop3-multi.c | 39 now.tv_sec = (long)time(NULL); in tvnow() 47 return (newer.tv_sec - older.tv_sec) * 1000 + in tvdiff() 101 timeout.tv_sec = 1; in main() 106 timeout.tv_sec = curl_timeo / 1000; in main() 107 if(timeout.tv_sec > 1) in main() 108 timeout.tv_sec = 1; in main()
|
D | imap-multi.c | 39 now.tv_sec = (long)time(NULL); in tvnow() 47 return (newer.tv_sec - older.tv_sec) * 1000 + in tvdiff() 101 timeout.tv_sec = 1; in main() 106 timeout.tv_sec = curl_timeo / 1000; in main() 107 if(timeout.tv_sec > 1) in main() 108 timeout.tv_sec = 1; in main()
|
/external/v8/src/base/platform/ |
D | time.cc | 107 return TimeDelta(ts.tv_sec * Time::kMicrosecondsPerSecond + in FromMachTimespec() 115 ts.tv_sec = static_cast<unsigned>(delta_ / Time::kMicrosecondsPerSecond); in ToMachTimespec() 130 return TimeDelta(ts.tv_sec * Time::kMicrosecondsPerSecond + in FromTimespec() 137 ts.tv_sec = static_cast<time_t>(delta_ / Time::kMicrosecondsPerSecond); in ToTimespec() 272 if (ts.tv_nsec == 0 && ts.tv_sec == 0) { in FromTimespec() 276 ts.tv_sec == std::numeric_limits<time_t>::max()) { in FromTimespec() 279 return Time(ts.tv_sec * kMicrosecondsPerSecond + in FromTimespec() 287 ts.tv_sec = 0; in ToTimespec() 292 ts.tv_sec = std::numeric_limits<time_t>::max(); in ToTimespec() 296 ts.tv_sec = static_cast<time_t>(us_ / kMicrosecondsPerSecond); in ToTimespec() [all …]
|
/external/opencv3/3rdparty/libjasper/ |
D | jas_tmr.c | 102 t0 = ((double) tmr->start.tv_sec) + ((double) tmr->start.tv_usec) / 1e6; in jas_tmr_get() 103 t1 = ((double) tmr->stop.tv_sec) + ((double) tmr->stop.tv_usec) / 1e6; in jas_tmr_get() 126 t = ((tmr->stop.ru_utime.tv_sec * 1e6 + tmr->stop.ru_utime.tv_usec) - in jas_tmr_get() 127 (tmr->start.ru_utime.tv_sec * 1e6 + tmr->start.ru_utime.tv_usec)) / 1e6; in jas_tmr_get() 128 t += ((tmr->stop.ru_stime.tv_sec * 1e6 + tmr->stop.ru_stime.tv_usec) - in jas_tmr_get() 129 (tmr->start.ru_stime.tv_sec * 1e6 + tmr->start.ru_stime.tv_usec)) / 1e6; in jas_tmr_get()
|
/external/fio/os/ |
D | os-mac.h | 79 tv.it_interval.tv_sec = value->it_interval.tv_sec; in timer_settime() 82 tv.it_value.tv_sec = value->it_value.tv_sec; in timer_settime() 95 ovalue->it_interval.tv_sec = tv_out.it_interval.tv_sec; in timer_settime() 97 ovalue->it_value.tv_sec = tv_out.it_value.tv_sec; in timer_settime()
|
/external/autotest/client/tests/cyclictest/src/ |
D | cyclictest.c | 171 ts->tv_sec++; in tsnorm() 178 diff = USEC_PER_SEC * ((int) t1.tv_sec - (int) t2.tv_sec); in calcdiff() 211 interval.tv_sec = par->interval / USEC_PER_SEC; in timerthread() 250 next.tv_sec++; in timerthread() 257 tspec.it_value.tv_sec = 1; in timerthread() 263 itimer.it_value.tv_sec = 1; in timerthread() 265 itimer.it_interval.tv_sec = interval.tv_sec; in timerthread() 299 next.tv_sec = now.tv_sec + interval.tv_sec; in timerthread() 308 next.tv_sec = now.tv_sec + interval.tv_sec; in timerthread() 336 next.tv_sec += interval.tv_sec; in timerthread() [all …]
|