| /freebsd-13.1/contrib/ntp/lib/isc/unix/ |
| H A D | time.c | 93 i->seconds = seconds; in isc_interval_set() 121 t->seconds = seconds; in isc_time_set() 228 t->seconds = tv.tv_sec + i->seconds; in isc_time_nowplusinterval() 243 if (t1->seconds < t2->seconds) in isc_time_compare() 245 if (t1->seconds > t2->seconds) in isc_time_compare() 267 ((long long)t->seconds + i->seconds > UINT_MAX)) in isc_time_add() 270 result->seconds = t->seconds + i->seconds; in isc_time_add() 287 if ((unsigned int)t->seconds < i->seconds || in isc_time_subtract() 288 ((unsigned int)t->seconds == i->seconds && in isc_time_subtract() 292 result->seconds = t->seconds - i->seconds; in isc_time_subtract() [all …]
|
| /freebsd-13.1/sys/net/route/ |
| H A D | route_temporal.c | 88 int seconds; in expire_callout() local 100 seconds = (next_expire - time_uptime); in expire_callout() 101 if (seconds < 0) in expire_callout() 102 seconds = 0; in expire_callout() 103 callout_reset_sbt(&rnh->expire_callout, SBT_1S * seconds, in expire_callout() 128 int seconds; in tmproutes_update() local 139 seconds = (rt->rt_expire - time_uptime); in tmproutes_update() 140 if (seconds < 0) in tmproutes_update() 141 seconds = 0; in tmproutes_update() 142 callout_reset_sbt(&rnh->expire_callout, SBT_1S * seconds, in tmproutes_update()
|
| /freebsd-13.1/contrib/libucl/tests/ |
| H A D | test_speed.c | 70 double start, end, seconds; in main() local 100 seconds = end - start; in main() 101 printf ("ucl: parsed input in %.4f seconds\n", seconds); in main() 112 seconds = end - start; in main() 113 printf ("ucl: emitted config in %.4f seconds\n", seconds); in main() 121 seconds = end - start; in main() 122 printf ("ucl: emitted json in %.4f seconds\n", seconds); in main() 130 seconds = end - start; in main() 131 printf ("ucl: emitted compact json in %.4f seconds\n", seconds); in main() 139 seconds = end - start; in main() [all …]
|
| /freebsd-13.1/contrib/llvm-project/lldb/source/Plugins/Process/gdb-remote/ |
| H A D | GDBRemoteClientBase.h | 36 bool SendAsyncSignal(int signo, std::chrono::seconds interrupt_timeout); 38 bool Interrupt(std::chrono::seconds interrupt_timeout); 42 llvm::StringRef payload, std::chrono::seconds interrupt_timeout, 55 std::chrono::seconds interrupt_timeout = std::chrono::seconds(0)); 59 std::chrono::seconds interrupt_timeout, 63 std::chrono::seconds interrupt_timeout, 75 std::chrono::seconds interrupt_timeout = std::chrono::seconds(0)); 87 std::chrono::seconds m_interrupt_timeout;
|
| H A D | GDBRemoteClientBase.cpp | 26 static const seconds kWakeupInterval(5); 41 llvm::StringRef payload, std::chrono::seconds interrupt_timeout, in SendContinuePacketAndWaitForResponse() 60 std::chrono::seconds computed_timeout = std::min(interrupt_timeout, in SendContinuePacketAndWaitForResponse() 83 std::chrono::duration_cast<std::chrono::seconds>(new_wait)); in SendContinuePacketAndWaitForResponse() 162 int signo, std::chrono::seconds interrupt_timeout) { in SendAsyncSignal() 173 bool GDBRemoteClientBase::Interrupt(std::chrono::seconds interrupt_timeout) { in Interrupt() 184 std::chrono::seconds interrupt_timeout) { in SendPacketAndWaitForResponse() 202 std::chrono::seconds interrupt_timeout, in SendPacketAndReceiveResponseWithOutputSupport() 253 llvm::StringRef payload, std::chrono::seconds interrupt_timeout, in SendvContPacket() 368 std::chrono::seconds interrupt_timeout) in Lock() [all …]
|
| /freebsd-13.1/usr.bin/rusers/ |
| H A D | rusers.c | 105 int days, hours, minutes, seconds; in rusers_reply() local 136 seconds = idle; in rusers_reply() 137 days = seconds / (60 * 60 * 24); in rusers_reply() 138 seconds %= (60 * 60 * 24); in rusers_reply() 139 hours = seconds / (60 * 60); in rusers_reply() 140 seconds %= (60 * 60); in rusers_reply() 141 minutes = seconds / 60; in rusers_reply() 142 seconds %= 60; in rusers_reply() 144 sprintf(idle_time, "%d:%02d", minutes, seconds); in rusers_reply() 147 hours, minutes, seconds); in rusers_reply() [all …]
|
| /freebsd-13.1/contrib/llvm-project/libcxx/src/ |
| H A D | chrono.cpp | 74 static _LIBCPP_CONSTEXPR const seconds nt_to_unix_epoch{11644473600}; in __libcpp_system_clock_now() 94 return system_clock::time_point(seconds(tp.tv_sec) + microseconds(tp.tv_nsec / 1000)); 102 return system_clock::time_point(seconds(tv.tv_sec) + microseconds(tv.tv_usec)); 118 return time_t(duration_cast<seconds>(t.time_since_epoch()).count()); in to_time_t() 124 return system_clock::time_point(seconds(t)); in from_time_t() 201 return steady_clock::time_point(seconds(tp.tv_sec) + nanoseconds(tp.tv_nsec)); in __libcpp_steady_clock_now() 226 auto seconds = counter.QuadPart / freq.QuadPart; in __libcpp_steady_clock_now() local 228 auto dur = seconds * nano::den + fractions * nano::den / freq.QuadPart; in __libcpp_steady_clock_now() 239 return steady_clock::time_point(seconds(ts.tv_sec) + nanoseconds(ts.tv_nsec)); in __libcpp_steady_clock_now() 248 return steady_clock::time_point(seconds(tp.tv_sec) + nanoseconds(tp.tv_nsec)); in __libcpp_steady_clock_now()
|
| /freebsd-13.1/usr.sbin/mfiutil/ |
| H A D | mfi_cmd.c | 316 print_time_humanized(uint seconds) in print_time_humanized() argument 319 if (seconds > 3600) { in print_time_humanized() 320 printf("%u:", seconds / 3600); in print_time_humanized() 322 if (seconds > 60) { in print_time_humanized() 323 seconds %= 3600; in print_time_humanized() 324 printf("%02u:%02u", seconds / 60, seconds % 60); in print_time_humanized() 326 printf("%us", seconds); in print_time_humanized() 333 uint seconds; in mfi_display_progress() local 340 seconds = (0x10000 * (uint32_t)prog->elapsed_seconds) / in mfi_display_progress() 342 print_time_humanized(seconds); in mfi_display_progress()
|
| /freebsd-13.1/lib/libc/gen/ |
| H A D | sleep.c | 48 __sleep(unsigned int seconds) in __sleep() argument 57 if (seconds > INT_MAX) in __sleep() 58 return (seconds - INT_MAX + __sleep(INT_MAX)); in __sleep() 60 time_to_sleep.tv_sec = seconds; in __sleep() 67 return (seconds); /* best guess */ in __sleep()
|
| /freebsd-13.1/contrib/tzdata/ |
| H A D | leapseconds | 1 # Allowance for leap seconds added to each time zone file. 6 # NIST format leap-seconds.list file, which can be copied from 7 # <ftp://ftp.nist.gov/pub/time/leap-seconds.list> 8 # or <ftp://ftp.boulder.nist.gov/pub/time/leap-seconds.list>. 10 # <https://hpiers.obspm.fr/iers/bul/bulc/ntp/leap-seconds.list> 13 # For more about leap-seconds.list, please see 23 # periodically uses leap seconds to keep UTC to within 0.9 s of UT1 31 # There were no leap seconds before 1972, as no official mechanism 33 # rotation. The first ("1 Jan 1972") data line in leap-seconds.list 37 # All leap-seconds are Stationary (S) at the given UTC time. [all …]
|
| H A D | leap-seconds.list | 17 # The first column shows an epoch as a number of seconds 23 # The second column shows the number of seconds that 77 # Leap seconds are announced by the IERS in its Bulletin C. 86 # of dropping seconds ("negative" leap seconds), this has 90 # 5. If your system keeps time as the number of seconds since 108 # 1 July 1972 00:00:00 (2287785600) TAI= UTC + 11 seconds 161 # The NTP timestamps are in units of seconds since the NTP epoch, 167 # where the first term converts seconds to days and the second 172 # fraction to seconds or to hours, minutes, and seconds may involve 179 # file name leap-seconds to form the name leap-seconds.<NTP TIME>. [all …]
|
| H A D | ziguard.awk | 58 hh, mm, ss, seconds, dot_dddd, subseconds) 67 seconds = 3600 * hh + 60 * mm + ss 69 seconds += 0.5 < subseconds || ((subseconds == 0.5) && (seconds % 2)); 71 seconds / 3600, seconds / 60 % 60, seconds % 60)
|
| /freebsd-13.1/contrib/kyua/utils/ |
| H A D | datetime.cpp | 62 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-13.1/contrib/ntp/ntpd/ |
| H A D | refclock_tsyncpci.c | 178 unsigned int seconds; member 395 double seconds; in tsync_poll() local 592 seconds /= (double) 1000000.0; in tsync_poll() 622 pp->second = (int) seconds; in tsync_poll() 623 seconds = (seconds - (double) (pp->second / 1.0)) * 1000000000; in tsync_poll() 624 pp->nsec = (long) seconds; in tsync_poll() 788 st.seconds = (int)((signed long long)st.seconds + (signed long long)off); in ApplyTimeOffset() 814 pSt->seconds = 0; in SecTimeFromDoyTime() 826 pSt->seconds += pDt->hour * SECSPERHR; in SecTimeFromDoyTime() 828 pSt->seconds += pDt->second; in SecTimeFromDoyTime() [all …]
|
| /freebsd-13.1/contrib/ldns/ |
| H A D | duration.c | 68 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() 246 if (duration->seconds > 0) { in ldns_duration2string() 247 count = count + 1 + digits_in_number(duration->seconds); in ldns_duration2string() 303 if (duration->seconds > 0) { in ldns_duration2string() 304 count = digits_in_number(duration->seconds); in ldns_duration2string() 306 snprintf(num, count+2, "%uS", (unsigned int) duration->seconds); in ldns_duration2string() 324 period += (duration->seconds); in ldns_duration2time()
|
| /freebsd-13.1/crypto/openssh/ |
| H A D | progressmeter.c | 128 int hours, minutes, seconds; in refresh_progress_meter() local 206 seconds = bytes_left / bytes_per_second; in refresh_progress_meter() 208 seconds = elapsed; in refresh_progress_meter() 210 hours = seconds / 3600; in refresh_progress_meter() 211 seconds -= hours * 3600; in refresh_progress_meter() 212 minutes = seconds / 60; in refresh_progress_meter() 213 seconds -= minutes * 60; in refresh_progress_meter() 217 "%d:%02d:%02d", hours, minutes, seconds); in refresh_progress_meter() 220 " %02d:%02d", minutes, seconds); in refresh_progress_meter()
|
| /freebsd-13.1/usr.bin/top/ |
| H A D | utils.c | 239 format_time(long seconds) in format_time() argument 244 if (seconds < 0 || seconds > (99999l * 360l)) in format_time() 248 else if (seconds >= (1000l * 60l)) in format_time() 251 sprintf(result, "%5.1fH", (double)seconds / (double)(60l * 60l)); in format_time() 263 seconds / 60l, seconds % 60l); in format_time()
|
| /freebsd-13.1/sys/fs/smbfs/ |
| H A D | smbfs_subr.c | 54 smb_time_local2server(struct timespec *tsp, int tzoff, u_long *seconds) in smb_time_local2server() argument 56 *seconds = tsp->tv_sec - tzoff * 60 /*- tz_minuteswest * 60 - in smb_time_local2server() 61 smb_time_server2local(u_long seconds, int tzoff, struct timespec *tsp) in smb_time_server2local() argument 63 tsp->tv_sec = seconds + tzoff * 60; in smb_time_server2local() 83 u_long seconds; in smb_time_local2NT() local 85 smb_time_local2server(tsp, 0, &seconds); in smb_time_local2NT() 86 *nsec = (((int64_t)(seconds) & ~1) + DIFF1970TO1601) * (int64_t)10000000; in smb_time_local2NT()
|
| /freebsd-13.1/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/predicates/ |
| H A D | tst.predcache.ksh | 163 seconds=`date +%S` 165 if [ "$seconds" -ne "$last" ]; then 166 last=$seconds 186 seconds=`date +%S` 188 if [ "$seconds" -ne "$last" ]; then 189 last=$seconds
|
| /freebsd-13.1/sys/contrib/openzfs/tests/zfs-tests/cmd/xattrtest/ |
| H A D | xattrtest.c | 357 double seconds; in create_files() local 405 seconds = timeval_sub_seconds(&stop, &start); in create_files() 407 seconds, files / seconds); in create_files() 448 double seconds; in setxattrs() local 499 seconds = timeval_sub_seconds(&stop, &start); in setxattrs() 501 seconds, (files * xattrs) / seconds); in setxattrs() 525 double seconds; in getxattrs() local 600 seconds = timeval_sub_seconds(&stop, &start); in getxattrs() 602 seconds, (files * xattrs) / seconds); in getxattrs() 624 double seconds; in unlink_files() local [all …]
|
| /freebsd-13.1/usr.sbin/ntp/ntpd/ |
| H A D | leap-seconds | 17 # The first column shows an epoch as a number of seconds 23 # The second column shows the number of seconds that 77 # Leap seconds are announced by the IERS in its Bulletin C. 86 # of dropping seconds ("negative" leap seconds), this has 90 # 5. If your system keeps time as the number of seconds since 108 # 1 July 1972 00:00:00 (2287785600) TAI= UTC + 11 seconds 161 # The NTP timestamps are in units of seconds since the NTP epoch, 167 # where the first term converts seconds to days and the second 172 # fraction to seconds or to hours, minutes, and seconds may involve 179 # file name leap-seconds to form the name leap-seconds.<NTP TIME>. [all …]
|
| /freebsd-13.1/contrib/unbound/sldns/ |
| H A D | parseutil.c | 78 time_t seconds; in sldns_mktime_from_utc() local 93 return seconds; in sldns_mktime_from_utc() 216 uint32_t seconds = 0; in sldns_str2period() local 227 return seconds; in sldns_str2period() 234 return seconds; in sldns_str2period() 239 seconds += i; in sldns_str2period() 244 seconds += i * 60; in sldns_str2period() 276 seconds += i; in sldns_str2period() 278 return seconds; in sldns_str2period() 281 seconds += i; in sldns_str2period() [all …]
|
| /freebsd-13.1/contrib/dialog/ |
| H A D | pause.c | 52 int seconds) in dialog_pause() argument 87 DLG_TRACE2N("seconds", seconds); in dialog_pause() 92 seconds_orig = (seconds > 0) ? seconds : 1; in dialog_pause() 156 (void) wprintw(dialog, "%3d", seconds); in dialog_pause() 163 x = (seconds * (width - 2 * (3 + MARGIN))) / seconds_orig; in dialog_pause() 246 } while ((result == DLG_EXIT_UNKNOWN) && (seconds-- > 0)); in dialog_pause()
|
| /freebsd-13.1/sys/contrib/device-tree/Bindings/input/ |
| H A D | ti,palmas-pwrbutton.txt | 16 - ti,palmas-long-press-seconds: Duration in seconds which the power 20 - ti,palmas-pwron-debounce-milli-seconds: Duration in milliseconds 32 ti,palmas-long-press-seconds = <12>; 33 ti,palmas-pwron-debounce-milli-seconds = <15>;
|
| /freebsd-13.1/contrib/ntp/lib/isc/unix/include/isc/ |
| H A D | time.h | 40 unsigned int seconds; member 50 unsigned int seconds, unsigned int nanoseconds); 84 unsigned int seconds; member 91 isc_time_set(isc_time_t *t, unsigned int seconds, unsigned int nanoseconds);
|