/freebsd/contrib/ntp/libntp/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/sys/net/route/ |
H A D | route_temporal.c | 86 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 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/sys/contrib/device-tree/Bindings/memory-controllers/ddr/ |
H A D | jedec,lpddr3-timings.yaml | 42 SELF REFRESH) in pico seconds. 47 Four-bank activate window in pico seconds. 52 Mode register set command delay in pico seconds. 62 Row active time in pico seconds. 67 ACTIVATE-to-ACTIVATE command period in pico seconds. 72 RAS-to-CAS delay in pico seconds. 77 Refresh Cycle time in pico seconds. 82 Row precharge time (all banks) in pico seconds. 87 Row precharge time (single banks) in pico seconds. 92 Active bank A to active bank B in pico seconds. [all …]
|
H A D | jedec,lpddr2-timings.yaml | 30 SELF REFRESH) in pico seconds. 41 seconds. 46 Four-bank activate window in pico seconds. 50 Row active time in nano seconds. 55 Row active time in pico seconds. 60 RAS-to-CAS delay in pico seconds. 65 Row precharge time (all banks) in pico seconds. 70 Active bank A to active bank B in pico seconds. 80 WRITE recovery time in pico seconds. 95 Long calibration time in pico seconds. [all …]
|
/freebsd/contrib/tcpdump/ |
H A D | print-arista.c | 91 arista_print_date_hms_time(netdissect_options *ndo, uint32_t seconds, in arista_print_date_hms_time() argument 97 ts = seconds + (nanoseconds / 1000000000); in arista_print_date_hms_time() 122 uint64_t seconds; in arista_ethertype_print() local 144 seconds = GET_BE_U_4(bp); in arista_ethertype_print() 146 arista_print_date_hms_time(ndo, seconds, nanoseconds); in arista_ethertype_print() 150 seconds = GET_BE_U_2(bp); in arista_ethertype_print() 152 seconds += nanoseconds / 1000000000; in arista_ethertype_print() 154 ND_PRINT("%" PRIu64 ".%09u", seconds, nanoseconds); in arista_ethertype_print()
|
H A D | ntp.c | 56 time_t seconds; in p_ntp_time() local 60 seconds = (time_t)seconds_64bit; in p_ntp_time() 61 if (seconds != seconds_64bit) { in p_ntp_time() 70 "%Y-%m-%dT%H:%M:%SZ", gmtime(&seconds)); in p_ntp_time()
|
/freebsd/bin/sleep/ |
H A D | sleep.c | 93 double seconds; in main() local 106 seconds = 0; in main() 108 seconds += parse_interval(*argv++); in main() 109 if (seconds > INT_MAX) in main() 111 if (seconds < 1e-9) in main() 113 original = time_to_sleep.tv_sec = (time_t)seconds; in main() 114 time_to_sleep.tv_nsec = 1e9 * (seconds - time_to_sleep.tv_sec); in main()
|
/freebsd/contrib/llvm-project/lldb/source/Plugins/Process/gdb-remote/ |
H A D | GDBRemoteClientBase.h | 40 bool SendAsyncSignal(int signo, std::chrono::seconds interrupt_timeout); 42 bool Interrupt(std::chrono::seconds interrupt_timeout); 46 llvm::StringRef payload, std::chrono::seconds interrupt_timeout, 59 std::chrono::seconds interrupt_timeout = std::chrono::seconds(0)); 68 std::chrono::seconds interrupt_timeout, 80 std::chrono::seconds interrupt_timeout = std::chrono::seconds(0)); 92 std::chrono::seconds m_interrupt_timeout;
|
/freebsd/usr.bin/rusers/ |
H A D | rusers.c | 102 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/llvm-project/libcxx/src/ |
H A D | chrono.cpp | 99 static constexpr const seconds nt_to_unix_epoch{11644473600}; in __libcpp_system_clock_now() 121 return system_clock::time_point(seconds(tp.tv_sec) + microseconds(tp.tv_nsec / 1000)); 129 return system_clock::time_point(seconds(tv.tv_sec) + microseconds(tv.tv_usec)); 139 return time_t(duration_cast<seconds>(t.time_since_epoch()).count()); in to_time_t() 142 …point system_clock::from_time_t(time_t t) noexcept { return system_clock::time_point(seconds(t)); } in from_time_t() 165 return steady_clock::time_point(seconds(tp.tv_sec) + nanoseconds(tp.tv_nsec)); in __libcpp_steady_clock_now() 186 auto seconds = counter.QuadPart / freq.QuadPart; in __libcpp_steady_clock_now() local 188 auto dur = seconds * nano::den + fractions * nano::den / freq.QuadPart; in __libcpp_steady_clock_now() 199 return steady_clock::time_point(seconds(ts.tv_sec) + nanoseconds(ts.tv_nsec)); in __libcpp_steady_clock_now() 219 return steady_clock::time_point(seconds(tp.tv_sec) + nanoseconds(tp.tv_nsec)); in __libcpp_steady_clock_now()
|
/freebsd/usr.sbin/mfiutil/ |
H A D | mfi_cmd.c | 325 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/lib/libc/gen/ |
H A D | sleep.c | 44 __sleep(unsigned int seconds) in __sleep() argument 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/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 229 return seconds; in sldns_str2period() 236 return seconds; in sldns_str2period() 245 seconds += i; in sldns_str2period() 254 seconds += i * 60; in sldns_str2period() 306 seconds += i; in sldns_str2period() 308 return seconds; in sldns_str2period() 315 seconds += i; in sldns_str2period() [all …]
|
/freebsd/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/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/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() 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 D | progressmeter.c | 133 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/tzdata/ |
H A D | leapseconds | 1 # 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> 9 # <ftp://ftp.boulder.nist.gov/pub/time/leap-seconds.list>. 10 # For more about leap-seconds.list, please see 14 # The rules for leap seconds are specified in Annex 1 (Time scales) of: 20 # periodically uses leap seconds to keep UTC to within 0.9 s of UT1 28 # There were no leap seconds before 1972, as no official mechanism 30 # rotation. The first ("1 Jan 1972") data line in leap-seconds.list 34 # All leap-seconds are Stationary (S) at the given UTC time. [all …]
|
/freebsd/usr.bin/top/ |
H A D | utils.c | 237 format_time(long seconds) in format_time() argument 242 if (seconds < 0 || seconds > (99999l * 360l)) in format_time() 246 else if (seconds >= (1000l * 60l)) in format_time() 249 sprintf(result, "%5.1fH", (double)seconds / (double)(60l * 60l)); in format_time() 261 seconds / 60l, seconds % 60l); in format_time()
|
/freebsd/contrib/llvm-project/llvm/lib/Support/ |
H A D | Chrono.cpp | 67 long((TP.time_since_epoch() % std::chrono::seconds(1)) in operator <<() 109 void format_provider<UtcTime<std::chrono::seconds>>::format( in format() 110 const UtcTime<std::chrono::seconds> &T, raw_ostream &OS, StringRef Style) { in format() 112 UtcTime<seconds> Truncated = in format() 113 UtcTime<seconds>(duration_cast<seconds>(T.time_since_epoch())); in format() 122 TimePoint<seconds> Truncated = time_point_cast<seconds>(T); in format()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/ |
H A D | Chrono.h | 44 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 static void format(const sys::UtcTime<std::chrono::seconds> &TP,
|
/freebsd/sys/fs/smbfs/ |
H A D | smbfs_subr.c | 52 smb_time_local2server(struct timespec *tsp, int tzoff, u_long *seconds) in smb_time_local2server() argument 54 *seconds = tsp->tv_sec - tzoff * 60 /*- tz_minuteswest * 60 - in smb_time_local2server() 59 smb_time_server2local(u_long seconds, int tzoff, struct timespec *tsp) in smb_time_server2local() argument 61 tsp->tv_sec = seconds + tzoff * 60; in smb_time_server2local() 81 u_long seconds; in smb_time_local2NT() local 83 smb_time_local2server(tsp, 0, &seconds); in smb_time_local2NT() 84 *nsec = (((int64_t)(seconds) & ~1) + DIFF1970TO1601) * (int64_t)10000000; in smb_time_local2NT()
|
/freebsd/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/sys/contrib/openzfs/tests/zfs-tests/cmd/ |
H A D | xattrtest.c | 355 double seconds; in create_files() local 403 seconds = timeval_sub_seconds(&stop, &start); in create_files() 405 seconds, files / seconds); in create_files() 446 double seconds; in setxattrs() local 497 seconds = timeval_sub_seconds(&stop, &start); in setxattrs() 499 seconds, (files * xattrs) / seconds); in setxattrs() 523 double seconds; in getxattrs() local 598 seconds = timeval_sub_seconds(&stop, &start); in getxattrs() 600 seconds, (files * xattrs) / seconds); in getxattrs() 622 double seconds; in unlink_files() local [all …]
|