/third_party/pulseaudio/src/pulse/ |
D | timeval.c | 126 time_t secs; in pa_timeval_add() local 129 secs = (time_t) (v/PA_USEC_PER_SEC); in pa_timeval_add() 131 if (PA_UNLIKELY(tv->tv_sec > PA_INT_TYPE_MAX(time_t) - secs)) in pa_timeval_add() 134 tv->tv_sec += secs; in pa_timeval_add() 135 v -= (pa_usec_t) secs * PA_USEC_PER_SEC; in pa_timeval_add() 157 time_t secs; in pa_timeval_sub() local 160 secs = (time_t) (v/PA_USEC_PER_SEC); in pa_timeval_sub() 162 if (PA_UNLIKELY(tv->tv_sec < secs)) in pa_timeval_sub() 165 tv->tv_sec -= secs; in pa_timeval_sub() 166 v -= (pa_usec_t) secs * PA_USEC_PER_SEC; in pa_timeval_sub()
|
/third_party/ltp/testcases/lib/ |
D | tst_sleep.c | 32 long interval, secs = 0, usecs = 0; in main() local 74 secs = interval; in main() 77 secs = interval / 1000; in main() 82 secs = interval / 1000000; in main() 86 if (secs) in main() 87 sleep(secs); in main()
|
/third_party/python/Python/ |
D | pytime.c | 459 _PyTime_t secs; in _PyTime_AsSecondsDouble() local 462 secs = t / SEC_TO_NS; in _PyTime_AsSecondsDouble() 463 d = (double)secs; in _PyTime_AsSecondsDouble() 542 _PyTime_t secs, ns; in _PyTime_AsTimeval_impl() local 546 secs = t / SEC_TO_NS; in _PyTime_AsTimeval_impl() 552 if (secs != _PyTime_MIN) { in _PyTime_AsTimeval_impl() 553 secs -= 1; in _PyTime_AsTimeval_impl() 561 if (secs != _PyTime_MAX) { in _PyTime_AsTimeval_impl() 562 secs += 1; in _PyTime_AsTimeval_impl() 570 *p_secs = secs; in _PyTime_AsTimeval_impl() [all …]
|
/third_party/libwebsockets/lib/core-net/ |
D | wsi-timeout.c | 125 __lws_set_timeout(struct lws *wsi, enum pending_timeout reason, int secs) in __lws_set_timeout() argument 132 ((lws_usec_t)secs) * LWS_US_PER_SEC); in __lws_set_timeout() 134 lwsl_wsi_debug(wsi, "%d secs, reason %d\n", secs, reason); in __lws_set_timeout() 140 lws_set_timeout(struct lws *wsi, enum pending_timeout reason, int secs) in lws_set_timeout() argument 149 if (!secs) in lws_set_timeout() 152 if (secs == LWS_TO_KILL_SYNC) { in lws_set_timeout() 160 if (secs == LWS_TO_KILL_ASYNC) in lws_set_timeout() 161 secs = 0; in lws_set_timeout() 164 if (secs && wsi->mux_stream_immortal) in lws_set_timeout() 165 lwsl_wsi_err(wsi, "on immortal stream %d %d", reason, secs); in lws_set_timeout() [all …]
|
/third_party/ltp/lib/ |
D | tst_rtctime.c | 60 unsigned int month, year, secs; in tst_rtc_time_to_tm() local 65 secs = time % 86400; in tst_rtc_time_to_tm() 92 tm->tm_hour = secs / 3600; in tst_rtc_time_to_tm() 93 secs -= tm->tm_hour * 3600; in tst_rtc_time_to_tm() 94 tm->tm_min = secs / 60; in tst_rtc_time_to_tm() 95 tm->tm_sec = secs - tm->tm_min * 60; in tst_rtc_time_to_tm()
|
/third_party/libbpf/src/ |
D | linker.c | 62 struct src_sec *secs; member 140 struct dst_sec *secs; member 201 struct dst_sec *sec = &linker->secs[i]; in bpf_linker__free() 211 free(linker->secs); in bpf_linker__free() 249 struct dst_sec *secs = linker->secs, *sec; in add_dst_sec() local 252 secs = libbpf_reallocarray(secs, new_cnt, sizeof(*secs)); in add_dst_sec() 253 if (!secs) in add_dst_sec() 257 memset(secs + linker->sec_cnt, 0, (new_cnt - linker->sec_cnt) * sizeof(*secs)); in add_dst_sec() 259 linker->secs = secs; in add_dst_sec() 262 sec = &linker->secs[new_cnt - 1]; in add_dst_sec() [all …]
|
/third_party/rust/crates/nix/src/sys/ |
D | time.rs | 151 let secs = hours in hours() localVariable 154 Self::seconds(secs) in hours() 159 let secs = minutes in minutes() localVariable 162 Self::seconds(secs) in minutes() 296 let (secs, nanos) = div_mod_floor_64(nanoseconds, NANOS_PER_SEC); in nanoseconds() 298 (TS_MIN_SECONDS..=TS_MAX_SECONDS).contains(&secs), in nanoseconds() 302 ts.tv_sec = secs as time_t; in nanoseconds() 328 let secs = self.num_seconds() * 1_000_000_000; in num_nanoseconds() localVariable 330 secs + nsec as i64 in num_nanoseconds() 523 let (secs, micros) = div_mod_floor_64(microseconds, MICROS_PER_SEC); in microseconds() [all …]
|
/third_party/skia/third_party/externals/abseil-cpp/absl/time/internal/cctz/src/ |
D | time_zone_fixed.cc | 75 int secs = Parse02d(np + 7); in FixedOffsetFromName() local 76 if (secs == -1) return false; in FixedOffsetFromName() 78 secs += ((hours * 60) + mins) * 60; in FixedOffsetFromName() 79 if (secs > 24 * 60 * 60) return false; // outside supported offset range in FixedOffsetFromName() 80 *offset = seconds(secs * (np[0] == '-' ? -1 : 1)); // "-" means west in FixedOffsetFromName()
|
/third_party/musl/porting/liteos_a/kernel/src/time/ |
D | __secs_to_tm.c | 13 long long days, secs, years; in __secs_to_tm() local 24 secs = t - LEAPOCH; in __secs_to_tm() 25 days = secs / 86400; in __secs_to_tm() 26 remsecs = secs % 86400; in __secs_to_tm()
|
/third_party/musl/porting/uniproton/kernel/src/time/ |
D | __secs_to_tm.c | 13 long long days, secs, years; in __secs_to_tm() local 24 secs = t - LEAPOCH; in __secs_to_tm() 25 days = secs / 86400; in __secs_to_tm() 26 remsecs = secs % 86400; in __secs_to_tm()
|
/third_party/musl/src/time/ |
D | __secs_to_tm.c | 13 long long days, secs, years; in __secs_to_tm() local 24 secs = t - LEAPOCH; in __secs_to_tm() 25 days = secs / 86400; in __secs_to_tm() 26 remsecs = secs % 86400; in __secs_to_tm()
|
D | strptime.c | 222 time_t secs = 0; in strptime() local 227 secs *= 10; in strptime() 228 secs += *s - '0'; in strptime() 231 if (localtime_r(&secs, tm) == NULL) { in strptime()
|
/third_party/musl/porting/liteos_m/kernel/src/time/ |
D | __secs_to_tm.c | 13 long long days, secs, years; in __secs_to_tm() local 24 secs = t - LEAPOCH; in __secs_to_tm() 25 days = secs / 86400; in __secs_to_tm() 26 remsecs = secs % 86400; in __secs_to_tm()
|
/third_party/tzdata/ |
D | date.c | 54 intmax_t secs; in main() local 83 secs = strtoimax(optarg, &endarg, 0); in main() 86 else if (! (TIME_T_MIN <= secs && secs <= TIME_T_MAX)) in main() 95 t = secs; in main()
|
/third_party/python/Lib/test/ |
D | test_time.py | 873 def c_int_filter(secs): argument 874 return (_testcapi.INT_MIN <= secs <= _testcapi.INT_MAX) 876 self.check_int_rounding(lambda secs, rnd: PyTime_FromSeconds(secs), 877 lambda secs: secs * SEC_TO_NS, 890 lambda secs: secs * SEC_TO_NS) 941 def seconds_filter(secs): argument 942 return LONG_MIN <= secs <= LONG_MAX 991 lambda secs: secs, 999 def converter(secs): argument 1000 floatpart, intpart = math.modf(secs) [all …]
|
/third_party/libunwind/libunwind/tests/ |
D | forker.c | 37 double secs; in main() local 71 secs = ((stop.tv_sec + 1e-6 * stop.tv_usec) in main() 74 (unsigned long) (1e9 * secs / (double) count)); in main()
|
/third_party/mesa3d/src/gallium/frontends/clover/core/ |
D | program.cpp | 104 if (!bin.secs.empty()) in status() 114 if (any_of(type_equals(binary::section::text_intermediate), bin.secs)) in binary_type() 116 else if (any_of(type_equals(binary::section::text_library), bin.secs)) in binary_type() 118 else if (any_of(type_equals(binary::section::text_executable), bin.secs)) in binary_type()
|
/third_party/rust/crates/rust-openssl/openssl/src/ |
D | asn1.rs | 176 pub secs: c_int, field 205 let mut secs = 0; in diff() localVariable 208 let err = unsafe { ffi::ASN1_TIME_diff(&mut days, &mut secs, self.as_ptr(), other) }; in diff() 212 _ => Ok(TimeDiff { days, secs }), in diff() 221 if d.days > 0 || d.secs > 0 { in compare() 224 if d.days < 0 || d.secs < 0 { in compare() 236 .map(|t| t.days == 0 && t.secs == 0) in eq() 245 .map(|t| t.days == 0 && t.secs == 0) in eq() 254 .map(|t| t.days == 0 && t.secs == 0) in eq() 374 .map(|t| t.days == 0 && t.secs == 0) in eq() [all …]
|
/third_party/mesa3d/src/util/ |
D | os_time.c | 72 int64_t secs, nanosecs; in os_time_get_nano() 78 secs = counter.QuadPart / frequency.QuadPart; in os_time_get_nano() 81 return secs*INT64_C(1000000000) + nanosecs; in os_time_get_nano()
|
/third_party/mesa3d/src/tool/pps/ |
D | pps_config.cc | 88 auto secs = std::chrono::seconds(1); in main() local 122 secs = std::chrono::seconds(args["--sec"].asLong()); in main() 169 driver->enable_perfcnt(std::chrono::nanoseconds(secs).count()); in main() 170 std::this_thread::sleep_for(std::chrono::seconds(secs)); in main()
|
/third_party/curl/tests/libtest/ |
D | testtrace.c | 97 time_t secs; in libtest_debug_cb() local 111 secs = epoch_offset + tv.tv_sec; in libtest_debug_cb() 112 now = localtime(&secs); /* not thread safe but we don't care */ in libtest_debug_cb()
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
D | DateTimeRule.java | 303 int secs = time % 60; in toString() local 319 buf.append(secs/10); in toString() 320 buf.append(secs%10); in toString()
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/util/ |
D | DateTimeRule.java | 268 int secs = time % 60; in toString() local 284 buf.append(secs/10); in toString() 285 buf.append(secs%10); in toString()
|
/third_party/skia/third_party/externals/swiftshader/src/Vulkan/ |
D | VkDeviceMemoryExternalMac.hpp | 48 uint64_t secs = (uint64_t)((double)time * convert_ratio / 1e-9); in GetTime() local 49 uint64_t usecs = (uint64_t)((double)time * convert_ratio - secs * 1e9); in GetTime() 50 tv.tv_sec = secs; in GetTime()
|
/third_party/skia/gm/ |
D | animated_gif.cpp | 147 double secs = TimeUtils::NanosToMSec(nanos) * .1; in onAnimate() local 153 fNextUpdate = secs + fFrameInfos[fFrame].fDuration; in onAnimate() 158 if (secs < fNextUpdate) { in onAnimate() 162 while (secs >= fNextUpdate) { in onAnimate()
|