| /freebsd-12.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-12.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-12.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-12.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-12.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 …]
|
| /freebsd-12.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-12.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()
|
| H A D | rdata.c | 689 uint32_t seconds = 0; in ldns_str2period() local 700 return seconds; in ldns_str2period() 707 return seconds; in ldns_str2period() 712 seconds += i; in ldns_str2period() 717 seconds += i * 60; in ldns_str2period() 722 seconds += i * 60 * 60; in ldns_str2period() 727 seconds += i * 60 * 60 * 24; in ldns_str2period() 749 seconds += i; in ldns_str2period() 751 return seconds; in ldns_str2period() 754 seconds += i; in ldns_str2period() [all …]
|
| /freebsd-12.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-12.1/crypto/openssh/ |
| H A D | progressmeter.c | 128 int hours, minutes, seconds; in refresh_progress_meter() local 203 seconds = bytes_left / bytes_per_second; in refresh_progress_meter() 205 seconds = elapsed; in refresh_progress_meter() 207 hours = seconds / 3600; in refresh_progress_meter() 208 seconds -= hours * 3600; in refresh_progress_meter() 209 minutes = seconds / 60; in refresh_progress_meter() 210 seconds -= minutes * 60; in refresh_progress_meter() 214 "%d:%02d:%02d", hours, minutes, seconds); in refresh_progress_meter() 217 " %02d:%02d", minutes, seconds); in refresh_progress_meter()
|
| /freebsd-12.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-12.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-12.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-12.1/contrib/libc++/src/ |
| H A D | chrono.cpp | 61 static _LIBCPP_CONSTEXPR const seconds nt_to_unix_epoch{11644473600}; in now() 82 return time_point(seconds(tp.tv_sec) + microseconds(tp.tv_nsec / 1000)); in now() 86 return time_point(seconds(tv.tv_sec) + microseconds(tv.tv_usec)); in now() 94 return time_t(duration_cast<seconds>(t.time_since_epoch()).count()); in to_time_t() 100 return system_clock::time_point(seconds(t)); in from_time_t() 122 return time_point(seconds(tp.tv_sec) + nanoseconds(tp.tv_nsec)); in now() 209 return time_point(seconds(tp.tv_sec) + nanoseconds(tp.tv_nsec)); in now()
|
| /freebsd-12.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-12.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-12.1/contrib/llvm/tools/lldb/source/Plugins/Process/gdb-remote/ |
| H A D | GDBRemoteCommunication.h | 83 std::chrono::seconds timeout); 88 std::chrono::seconds m_saved_timeout; 119 std::chrono::seconds SetPacketTimeout(std::chrono::seconds packet_timeout) { in SetPacketTimeout() 125 std::chrono::seconds GetPacketTimeout() const { return m_packet_timeout; } in GetPacketTimeout() 146 std::chrono::seconds m_packet_timeout;
|
| /freebsd-12.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);
|
| /freebsd-12.1/crypto/openssh/regress/ |
| H A D | rekey.sh | 151 1) seconds=1 ;; 152 1m|1M) seconds=60 ;; 153 1h|1H) seconds=3600 ;; 154 1d|1D) seconds=86400 ;; 155 1w|1W) seconds=604800 ;; 166 if [ "$seconds" != "$s" ]; then
|
| /freebsd-12.1/contrib/dialog/ |
| H A D | pause.c | 52 int seconds) in dialog_pause() argument 87 seconds_orig = (seconds > 0) ? seconds : 1; in dialog_pause() 150 (void) wprintw(dialog, "%3d", seconds); in dialog_pause() 157 x = (seconds * (width - 2 * (3 + MARGIN))) / seconds_orig; in dialog_pause() 236 } while ((result == DLG_EXIT_UNKNOWN) && (seconds-- > 0)); in dialog_pause()
|
| /freebsd-12.1/stand/efi/libefi/ |
| H A D | time.c | 111 time_t seconds; in to_efi_time() local 117 seconds = CumulativeDays[lyear][month] * SECSPERDAY; in to_efi_time() 118 while (time > seconds) { in to_efi_time() 119 time -= seconds; in to_efi_time() 122 seconds = CumulativeDays[lyear][month] * SECSPERDAY; in to_efi_time()
|
| /freebsd-12.1/contrib/llvm/lib/Support/ |
| H A D | CachePruning.cpp | 59 static Expected<std::chrono::seconds> parseDuration(StringRef Duration) { in parseDuration() 72 return std::chrono::seconds(Num); in parseDuration() 168 if (Policy.Expiration == seconds(0) && in pruneCache() 192 if (Policy.Interval != seconds(0)) { in pruneCache() 199 << duration_cast<seconds>(TimeStampAge).count() in pruneCache() 240 if (Policy.Expiration != seconds(0) && FileAge > Policy.Expiration) { in pruneCache() 242 << duration_cast<seconds>(FileAge).count() in pruneCache()
|
| /freebsd-12.1/contrib/llvm/include/llvm/Support/ |
| H A D | CachePruning.h | 32 llvm::Optional<std::chrono::seconds> Interval = std::chrono::seconds(1200); 37 std::chrono::seconds Expiration = std::chrono::hours(7 * 24); // 1w
|
| /freebsd-12.1/usr.bin/gprof/ |
| H A D | gprof.flat | 9 cumulative a running sum of the number of seconds accounted 10 seconds for by this function and those listed above it. 12 self the number of seconds accounted for by this 13 seconds function alone. This is the major sort for this
|