Home
last modified time | relevance | path

Searched refs:secs (Results 1 - 25 of 131) sorted by relevance

123456

/third_party/pulseaudio/src/pulse/
H A Dtimeval.c126 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_SE in pa_timeval_sub()
[all...]
/third_party/libwebsockets/lib/core-net/
H A Dwsi-timeout.c125 __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()
163 // assert(!secs || !ws in lws_set_timeout()
[all...]
/third_party/ltp/testcases/lib/
H A Dtst_sleep.c32 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/ltp/lib/
H A Dtst_rtctime.c60 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/
H A Dlinker.c62 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()
518 struct src_sec *secs = obj->secs, *sec; add_src_sec() local
[all...]
/third_party/skia/third_party/externals/abseil-cpp/absl/time/internal/cctz/src/
H A Dtime_zone_fixed.cc75 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/
H A D__secs_to_tm.c13 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/
H A D__secs_to_tm.c13 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/liteos_m/kernel/src/time/
H A D__secs_to_tm.c13 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/
H A D__secs_to_tm.c13 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()
H A Dstrptime.c222 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/rust/crates/nix/src/sys/
H A Dtime.rs151 let secs = hours in hours()
154 Self::seconds(secs) in hours()
159 let secs = minutes in minutes()
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()
330 secs + nsec as i64 in num_nanoseconds()
523 let (secs, micro in microseconds()
[all...]
/third_party/tzdata/
H A Ddate.c54 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/mesa3d/src/gallium/frontends/clover/core/
H A Dprogram.cpp104 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/libunwind/libunwind/tests/
H A Dforker.c37 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/python/Lib/test/
H A Dtest_time.py903 def c_int_filter(secs):
904 return (_testcapi.INT_MIN <= secs <= _testcapi.INT_MAX)
906 self.check_int_rounding(lambda secs, rnd: PyTime_FromSeconds(secs),
907 lambda secs: secs * SEC_TO_NS,
920 lambda secs: secs * SEC_TO_NS)
971 def seconds_filter(secs):
972 return LONG_MIN <= secs <
[all...]
/third_party/curl/tests/libtest/
H A Dtesttrace.c97 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/
H A DDateTimeRule.java303 int secs = time % 60; in toString()
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/
H A DDateTimeRule.java268 int secs = time % 60; in toString()
284 buf.append(secs/10); in toString()
285 buf.append(secs%10); in toString()
/third_party/mesa3d/src/util/
H A Dos_time.c72 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/skia/third_party/externals/swiftshader/src/Vulkan/
H A DVkDeviceMemoryExternalMac.hpp48 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/mesa3d/src/tool/pps/
H A Dpps_config.cc88 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/skia/samplecode/
H A DSampleAnimBlur.cpp14 SkScalar get_anim_sin(double secs, SkScalar amplitude, SkScalar periodInSec, SkScalar phaseInSec) { in get_anim_sin() argument
18 double t = secs + phaseInSec; in get_anim_sin()
/third_party/mesa3d/src/gallium/frontends/clover/llvm/codegen/
H A Dbitcode.cpp78 b.secs.emplace_back(0, section_type, code.size(), code); in build_module_library()
86 as_string(b.secs[0].data), " "), ctx); in parse_module_library()
/third_party/musl/porting/linux/user/src/time/
H A Dstrptime.c277 time_t secs = 0; in strptime() local
282 secs *= __STRPTIME_NUMBER_BASE; in strptime()
283 secs += *s - '0'; in strptime()
286 if (localtime_r(&secs, tm) == NULL) { in strptime()

Completed in 13 milliseconds

123456