Home
last modified time | relevance | path

Searched refs:seconds (Results 1 – 25 of 578) sorted by relevance

12345678910>>...24

/freebsd/contrib/ntp/libntp/lib/isc/unix/
H A Dtime.c88 unsigned int seconds, unsigned int nanoseconds) in isc_interval_set() argument
93 i->seconds = seconds; in isc_interval_set()
102 if (i->seconds == 0 && i->nanoseconds == 0) in isc_interval_iszero()
117 isc_time_set(isc_time_t *t, unsigned int seconds, unsigned int nanoseconds) { in isc_time_set() argument
121 t->seconds = seconds; in isc_time_set()
129 t->seconds = 0; in isc_time_settoepoch()
138 if (t->seconds == 0 && t->nanoseconds == 0) in isc_time_isepoch()
177 if (sizeof(tv.tv_sec) > sizeof(t->seconds) && in isc_time_now()
181 t->seconds = tv.tv_sec; in isc_time_now()
224 if ((tv.tv_sec > INT_MAX || i->seconds > INT_MAX) && in isc_time_nowplusinterval()
[all …]
/freebsd/contrib/llvm-project/libcxx/include/__chrono/
H A Dutc_clock.h40 using utc_seconds = utc_time<seconds>;
53 [[nodiscard]] _LIBCPP_HIDE_FROM_ABI static sys_time<common_type_t<_Duration, seconds>>
57 [[nodiscard]] _LIBCPP_HIDE_FROM_ABI static utc_time<common_type_t<_Duration, seconds>>
59 using _Rp = utc_time<common_type_t<_Duration, seconds>>; in from_sys()
108 seconds elapsed;
115 return {false, chrono::seconds{0}}; in get_leap_second_info()
117 sys_seconds __sys{chrono::floor<seconds>(__time).time_since_epoch()}; in get_leap_second_info()
118 seconds __elapsed{0}; in get_leap_second_info()
136 [[nodiscard]] _LIBCPP_HIDE_FROM_ABI sys_time<common_type_t<_Duration, seconds>>
138 using _Dp = common_type_t<_Duration, seconds>; in to_sys()
[all …]
H A Dtime_zone.h68 return __get_info(chrono::time_point_cast<seconds>(__time)); in get_info()
73 return __get_info(chrono::time_point_cast<seconds>(__time)); in get_info()
79 …_LIBCPP_HIDE_FROM_ABI sys_time<common_type_t<_Duration, seconds>> to_sys(const local_time<_Duratio… in to_sys()
83 …return sys_time<common_type_t<_Duration, seconds>>{__time.time_since_epoch() - __info.first.offset… in to_sys()
102 [[nodiscard]] _LIBCPP_HIDE_FROM_ABI sys_time<common_type_t<_Duration, seconds>>
107 …return sys_time<common_type_t<_Duration, seconds>>{__time.time_since_epoch() - __info.first.offset… in to_sys()
112 return sys_time<common_type_t<_Duration, seconds>>{__info.first.end}; in to_sys()
117 …return sys_time<common_type_t<_Duration, seconds>>{__time.time_since_epoch() - __info.first.offset… in to_sys()
120 …return sys_time<common_type_t<_Duration, seconds>>{__time.time_since_epoch() - __info.second.offse… in to_sys()
136 [[nodiscard]] _LIBCPP_HIDE_FROM_ABI local_time<common_type_t<_Duration, seconds>>
[all …]
H A Dtai_clock.h41 using tai_seconds = tai_time<seconds>;
70 static constexpr chrono::seconds __offset{378691210};
75 [[nodiscard]] _LIBCPP_HIDE_FROM_ABI static utc_time<common_type_t<_Duration, seconds>>
77 using _Rp = common_type_t<_Duration, seconds>; in to_utc()
86 [[nodiscard]] _LIBCPP_HIDE_FROM_ABI static tai_time<common_type_t<_Duration, seconds>>
88 using _Rp = common_type_t<_Duration, seconds>; in from_utc()
H A Dgps_clock.h41 using gps_seconds = gps_time<seconds>;
52 static constexpr chrono::seconds __offset{315964809};
57 [[nodiscard]] _LIBCPP_HIDE_FROM_ABI static utc_time<common_type_t<_Duration, seconds>>
59 using _Rp = common_type_t<_Duration, seconds>; in to_utc()
68 [[nodiscard]] _LIBCPP_HIDE_FROM_ABI static gps_time<common_type_t<_Duration, seconds>>
70 using _Rp = common_type_t<_Duration, seconds>; in from_utc()
/freebsd/sys/net/route/
H A Droute_temporal.c86 int seconds; in expire_callout() local
98 seconds = (next_expire - time_uptime); in expire_callout()
99 if (seconds < 0) in expire_callout()
100 seconds = 0; in expire_callout()
101 callout_reset_sbt(&rnh->expire_callout, SBT_1S * seconds, in expire_callout()
126 int seconds; in tmproutes_update() local
138 seconds = (nh_expire - time_uptime); in tmproutes_update()
139 if (seconds < 0) in tmproutes_update()
140 seconds = 0; in tmproutes_update()
141 callout_reset_sbt(&rnh->expire_callout, SBT_1S * seconds, in tmproutes_update()
/freebsd/contrib/libucl/tests/
H A Dtest_speed.c79 double start, end, seconds; in main() local
109 seconds = end - start; in main()
110 printf ("ucl: parsed input in %.4f seconds\n", seconds); in main()
121 seconds = end - start; in main()
122 printf ("ucl: emitted config in %.4f seconds\n", seconds); in main()
130 seconds = end - start; in main()
131 printf ("ucl: emitted json in %.4f seconds\n", seconds); in main()
139 seconds = end - start; in main()
140 printf ("ucl: emitted compact json in %.4f seconds\n", seconds); in main()
148 seconds = end - start; in main()
[all …]
/freebsd/crypto/krb5/src/lib/krb5/os/
H A Dtoffset.c40 krb5_set_real_time(krb5_context context, krb5_timestamp seconds, krb5_int32 microseconds) in krb5_set_real_time() argument
51 os_ctx->time_offset = ts_delta(seconds, sec); in krb5_set_real_time()
65 krb5_set_debugging_time(krb5_context context, krb5_timestamp seconds, krb5_int32 microseconds) in krb5_set_debugging_time() argument
69 os_ctx->time_offset = seconds; in krb5_set_debugging_time()
94 krb5_get_time_offsets(krb5_context context, krb5_timestamp *seconds, krb5_int32 *microseconds) in krb5_get_time_offsets() argument
98 if (seconds) in krb5_get_time_offsets()
99 *seconds = os_ctx->time_offset; in krb5_get_time_offsets()
110 krb5_set_time_offsets(krb5_context context, krb5_timestamp seconds, krb5_int32 microseconds) in krb5_set_time_offsets() argument
114 os_ctx->time_offset = seconds; in krb5_set_time_offsets()
/freebsd/bin/sleep/
H A Dsleep.c95 double seconds; in main() local
108 seconds = 0; in main()
110 seconds += parse_interval(*argv++); in main()
111 if (seconds > INT_MAX) in main()
113 if (seconds < 1e-9) in main()
115 original = time_to_sleep.tv_sec = (time_t)seconds; in main()
116 time_to_sleep.tv_nsec = 1e9 * (seconds - time_to_sleep.tv_sec); in main()
/freebsd/contrib/llvm-project/libcxx/src/
H A Dchrono.cpp106 static constexpr const seconds nt_to_unix_epoch{11644473600}; in __libcpp_system_clock_now()
128 return system_clock::time_point(seconds(ts.tv_sec) + microseconds(ts.tv_nsec / 1000));
137 return system_clock::time_point(seconds(tp.tv_sec) + microseconds(tp.tv_nsec / 1000));
145 return system_clock::time_point(seconds(tv.tv_sec) + microseconds(tv.tv_usec));
158 return time_t(duration_cast<seconds>(t.time_since_epoch()).count()); in to_time_t()
161 …point system_clock::from_time_t(time_t t) noexcept { return system_clock::time_point(seconds(t)); } in from_time_t()
184 return steady_clock::time_point(seconds(tp.tv_sec) + nanoseconds(tp.tv_nsec)); in __libcpp_steady_clock_now()
205 auto seconds = counter.QuadPart / freq.QuadPart; in __libcpp_steady_clock_now() local
207 auto dur = seconds * nano::den + fractions * nano::den / freq.QuadPart; in __libcpp_steady_clock_now()
218 return steady_clock::time_point(seconds(ts.tv_sec) + nanoseconds(ts.tv_nsec)); in __libcpp_steady_clock_now()
[all …]
/freebsd/contrib/llvm-project/lldb/source/Plugins/Process/gdb-remote/
H A DGDBRemoteClientBase.h45 bool SendAsyncSignal(int signo, std::chrono::seconds interrupt_timeout);
47 bool Interrupt(std::chrono::seconds interrupt_timeout);
51 llvm::StringRef payload, std::chrono::seconds interrupt_timeout,
64 std::chrono::seconds interrupt_timeout = std::chrono::seconds(0),
74 std::chrono::seconds interrupt_timeout,
86 std::chrono::seconds interrupt_timeout = std::chrono::seconds(0));
98 std::chrono::seconds m_interrupt_timeout;
/freebsd/usr.bin/rusers/
H A Drusers.c102 int days, hours, minutes, seconds; in rusers_reply() local
133 seconds = idle; in rusers_reply()
134 days = seconds / (60 * 60 * 24); in rusers_reply()
135 seconds %= (60 * 60 * 24); in rusers_reply()
136 hours = seconds / (60 * 60); in rusers_reply()
137 seconds %= (60 * 60); in rusers_reply()
138 minutes = seconds / 60; in rusers_reply()
139 seconds %= 60; in rusers_reply()
141 sprintf(idle_time, "%d:%02d", minutes, seconds); in rusers_reply()
144 hours, minutes, seconds); in rusers_reply()
[all …]
/freebsd/contrib/tzdata/
H A Dleapseconds1 # Allowance for leap seconds added to each time zone file.
6 # NIST/IERS format leap-seconds.list file, which can be copied from
7 # <https://hpiers.obspm.fr/iers/bul/bulc/ntp/leap-seconds.list>
10 # <ftp://ftp.boulder.nist.gov/pub/time/leap-seconds.list>.
11 # For more about leap-seconds.list, please see
15 # The rules for leap seconds are specified in Annex 1 (Time scales) of:
21 # periodically uses leap seconds to keep UTC to within 0.9 s of UT1
29 # There were no leap seconds before 1972, as no official mechanism
31 # rotation. The first ("1 Jan 1972") data line in leap-seconds.list
35 # All leap-seconds are Stationary (S) at the given UTC time.
[all …]
/freebsd/contrib/tcpdump/
H A Dprint-arista.c90 arista_print_date_hms_time(netdissect_options *ndo, const uint32_t seconds, in arista_print_date_hms_time() argument
93 const time_t ts = seconds; in arista_print_date_hms_time()
121 uint32_t seconds; in arista_ethertype_print() local
143 seconds = GET_BE_U_4(bp); in arista_ethertype_print()
145 arista_print_date_hms_time(ndo, seconds, nanoseconds); in arista_ethertype_print()
149 seconds = GET_BE_U_2(bp); in arista_ethertype_print()
151 ND_PRINT("%u.%09u", seconds, nanoseconds); in arista_ethertype_print()
/freebsd/usr.sbin/mfiutil/
H A Dmfi_cmd.c325 print_time_humanized(uint seconds) in print_time_humanized() argument
328 if (seconds > 3600) { in print_time_humanized()
329 printf("%u:", seconds / 3600); in print_time_humanized()
331 if (seconds > 60) { in print_time_humanized()
332 seconds %= 3600; in print_time_humanized()
333 printf("%02u:%02u", seconds / 60, seconds % 60); in print_time_humanized()
335 printf("%us", seconds); in print_time_humanized()
342 uint seconds; in mfi_display_progress() local
349 seconds = (0x10000 * (uint32_t)prog->elapsed_seconds) / in mfi_display_progress()
351 print_time_humanized(seconds); in mfi_display_progress()
/freebsd/contrib/unbound/sldns/
H A Dparseutil.c78 time_t seconds; in sldns_mktime_from_utc() local
91 seconds = minutes * 60 + tm->tm_sec; in sldns_mktime_from_utc()
93 return seconds; in sldns_mktime_from_utc()
216 uint32_t seconds = 0; in sldns_str2period() local
229 return seconds; in sldns_str2period()
236 return seconds; in sldns_str2period()
241 if(seconds > maxint-i) { in sldns_str2period()
245 seconds += i; in sldns_str2period()
250 if(i > maxint/60 || seconds > maxint-(i*60)) { in sldns_str2period()
254 seconds += i * 60; in sldns_str2period()
[all …]
/freebsd/lib/libc/gen/
H A Dsleep.c44 __sleep(unsigned int seconds) in __sleep() argument
50 * Avoid overflow when `seconds' is huge. This assumes that in __sleep()
53 if (seconds > INT_MAX) in __sleep()
54 return (seconds - INT_MAX + __sleep(INT_MAX)); in __sleep()
56 time_to_sleep.tv_sec = seconds; in __sleep()
61 return (seconds); /* best guess */ in __sleep()
/freebsd/contrib/kyua/utils/
H A Ddatetime.cpp62 seconds(0), in delta()
76 seconds(seconds_), in delta()
112 return seconds * 1000000 + useconds; in to_microseconds()
124 return seconds == other.seconds && useconds == other.useconds; in operator ==()
148 return seconds < other.seconds || in operator <()
149 (seconds == other.seconds && useconds < other.useconds); in operator <()
174 return seconds > other.seconds || in operator >()
175 (seconds == other.seconds && useconds > other.useconds); in operator >()
/freebsd/contrib/ntp/ntpd/
H A Drefclock_tsyncpci.c103 // be tracked as the number of seconds from this date/time.
143 unsigned int secsDouble; /* seconds floating pt */
144 unsigned char seconds; /* seconds whole num */ member
178 unsigned int seconds; member
395 double seconds; in tsync_poll() local
518 /* Read the leap seconds info from the TSYNC-PCI device */ in tsync_poll()
590 // Pull seconds information from time object in tsync_poll()
591 seconds = (double) (TimeContext.timeObj.secsDouble); in tsync_poll()
592 seconds / in tsync_poll()
[all...]
/freebsd/usr.bin/top/
H A Dutils.c216 format_time(long seconds) in format_time() argument
221 if (seconds < 0 || seconds > (99999l * 360l)) in format_time()
225 else if (seconds >= (1000l * 60l)) in format_time()
228 sprintf(result, "%5.1fH", (double)seconds / (double)(60l * 60l)); in format_time()
240 seconds / 60l, seconds % 60l); in format_time()
/freebsd/contrib/ldns/
H A Dduration.c68 duration->seconds = 0; in ldns_duration_create()
105 if (d1->seconds != d2->seconds) { in ldns_duration_compare()
106 return (int) (d1->seconds - d2->seconds); in ldns_duration_compare()
174 duration->seconds = (time_t) atoi(str+1); in ldns_duration_create_from_string()
227 if (d->hours || d->minutes || d->seconds) { in ldns_duration2string()
234 || dur_scan_print(&p, eob, 'S', d->seconds)) in ldns_duration2string()
251 period += (duration->seconds); in ldns_duration2time()
/freebsd/crypto/openssh/
H A Dprogressmeter.c132 int hours, minutes, seconds; in refresh_progress_meter() local
208 seconds = bytes_left / bytes_per_second; in refresh_progress_meter()
210 seconds = elapsed; in refresh_progress_meter()
212 hours = seconds / 3600; in refresh_progress_meter()
213 seconds -= hours * 3600; in refresh_progress_meter()
214 minutes = seconds / 60; in refresh_progress_meter()
215 seconds -= minutes * 60; in refresh_progress_meter()
219 hours, minutes, seconds); in refresh_progress_meter()
221 xextendf(&buf, NULL, " %02d:%02d", minutes, seconds); in refresh_progress_meter()
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DChrono.cpp68 long((TP.time_since_epoch() % std::chrono::seconds(1)) in operator <<()
110 void format_provider<UtcTime<std::chrono::seconds>>::format( in format()
111 const UtcTime<std::chrono::seconds> &T, raw_ostream &OS, StringRef Style) { in format()
113 UtcTime<seconds> Truncated = in format()
114 UtcTime<seconds>(duration_cast<seconds>(T.time_since_epoch())); in format()
123 TimePoint<seconds> Truncated = time_point_cast<seconds>(T); in format()
/freebsd/contrib/llvm-project/libcxx/src/experimental/
H A Dtime_zone.cpp128 __format(const __tz::__continuation& __continuation, const string& __letters, seconds __save) { in __format()
190 [[nodiscard]] static sys_seconds __to_sys_seconds(year_month_day __ymd, seconds __seconds) { in __to_sys_seconds()
191 seconds __result = static_cast<sys_days>(__ymd).time_since_epoch() + __seconds; in __to_sys_seconds()
195 [[nodiscard]] static seconds __at_to_sys_seconds(const __tz::__continuation& __continuation) { in __at_to_sys_seconds()
203 return chrono::seconds{0}; in __at_to_sys_seconds()
205 return chrono::duration_cast<seconds>(__value.__time); in __at_to_sys_seconds()
209 return chrono::seconds{0}; in __at_to_sys_seconds()
278 …sys_seconds operator()(seconds __save) const noexcept { return __until_ - __needs_adjustment_ * __… in operator ()()
285 [[nodiscard]] static seconds __at_to_seconds(seconds __stdoff, const __tz::__rule& __rule) { in __at_to_seconds()
304 [[nodiscard]] static sys_seconds __from_to_sys_seconds(seconds __stdoff, const __tz::__rule& __rule… in __from_to_sys_seconds()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DChrono.h44 inline UtcTime<std::chrono::seconds> toUtcTime(std::time_t T) { in toUtcTime()
46 return UtcTime<seconds>(seconds(T)); in toUtcTime()
59 return system_clock::to_time_t(time_point<system_clock, seconds>( in toTimeT()
60 duration_cast<seconds>(TP.time_since_epoch()))); in toTimeT()
64 inline TimePoint<std::chrono::seconds>
67 return time_point_cast<seconds>(system_clock::from_time_t(T)); in toTimePoint()
97 template <> struct format_provider<sys::UtcTime<std::chrono::seconds>> {
98 LLVM_ABI static void format(const sys::UtcTime<std::chrono::seconds> &TP,

12345678910>>...24