Searched refs:seconds (Results 1 - 25 of 231) sorted by relevance

12345678910

/freebsd-current/contrib/llvm-project/llvm/lib/Support/Unix/
H A DWatchdog.inc21 Watchdog::Watchdog(unsigned int seconds) {
23 alarm(seconds);
/freebsd-current/lib/libc/gen/
H A Dsleep.c44 __sleep(unsigned int seconds) argument
50 * Avoid overflow when `seconds' is huge. This assumes that
53 if (seconds > INT_MAX)
54 return (seconds - INT_MAX + __sleep(INT_MAX));
56 time_to_sleep.tv_sec = seconds;
61 return (seconds); /* best guess */
/freebsd-current/contrib/ntp/libntp/lib/isc/unix/
H A Dtime.c88 unsigned int seconds, unsigned int nanoseconds)
93 i->seconds = seconds;
102 if (i->seconds == 0 && i->nanoseconds == 0)
117 isc_time_set(isc_time_t *t, unsigned int seconds, unsigned int nanoseconds) { argument
121 t->seconds = seconds;
129 t->seconds = 0;
138 if (t->seconds == 0 && t->nanoseconds == 0)
175 * Ensure the tv_sec value fits in t->seconds
87 isc_interval_set(isc_interval_t *i, unsigned int seconds, unsigned int nanoseconds) argument
337 time_t seconds; local
[all...]
/freebsd-current/contrib/ntp/libparse/
H A Dgpstolfp.c44 unsigned long seconds,
48 lfp->l_ui = (uint32_t)(weeks * SECSPERWEEK + days * SECSPERDAY + seconds + GPSORIGIN); /* convert to NTP time */
41 gpstolfp( u_int weeks, u_int days, unsigned long seconds, l_fp * lfp ) argument
/freebsd-current/sys/net/route/
H A Droute_temporal.c86 int seconds; local
98 seconds = (next_expire - time_uptime);
99 if (seconds < 0)
100 seconds = 0;
101 callout_reset_sbt(&rnh->expire_callout, SBT_1S * seconds,
126 int seconds; local
138 seconds = (nh_expire - time_uptime);
139 if (seconds < 0)
140 seconds = 0;
141 callout_reset_sbt(&rnh->expire_callout, SBT_1S * seconds,
[all...]
/freebsd-current/bin/sleep/
H A Dsleep.c53 "Unit can be 's' (seconds, the default), "
93 double seconds; local
106 seconds = 0;
108 seconds += parse_interval(*argv++);
109 if (seconds > INT_MAX)
111 if (seconds < 1e-9)
113 original = time_to_sleep.tv_sec = (time_t)seconds;
114 time_to_sleep.tv_nsec = 1e9 * (seconds - time_to_sleep.tv_sec);
/freebsd-current/contrib/llvm-project/llvm/include/llvm/Support/
H A DCachePruning.h33 std::optional<std::chrono::seconds> Interval = std::chrono::seconds(1200);
36 /// seconds, it is removed from the cache. A value of 0 disables the
38 std::chrono::seconds Expiration = std::chrono::hours(7 * 24); // 1w
67 /// which means a pruning interval of 30 seconds, expiration time of 24 hours
H A DWatchdog.h27 Watchdog(unsigned int seconds);
/freebsd-current/contrib/tcpdump/
H A Dntp.c31 #define JAN_1970 INT64_T_CONSTANT(2208988800) /* 1970 - 1900 in seconds */
56 time_t seconds; local
60 seconds = (time_t)seconds_64bit;
61 if (seconds != seconds_64bit) {
70 "%Y-%m-%dT%H:%M:%SZ", gmtime(&seconds));
H A Dprint-arista.c91 arista_print_date_hms_time(netdissect_options *ndo, uint32_t seconds, argument
97 ts = seconds + (nanoseconds / 1000000000);
122 uint64_t seconds; local
144 seconds = GET_BE_U_4(bp);
146 arista_print_date_hms_time(ndo, seconds, nanoseconds);
150 seconds = GET_BE_U_2(bp);
152 seconds += nanoseconds / 1000000000;
154 ND_PRINT("%" PRIu64 ".%09u", seconds, nanoseconds);
/freebsd-current/contrib/libucl/tests/
H A Dtest_speed.c70 double start, end, seconds; local
100 seconds = end - start;
101 printf ("ucl: parsed input in %.4f seconds\n", seconds);
112 seconds = end - start;
113 printf ("ucl: emitted config in %.4f seconds\n", seconds);
121 seconds = end - start;
122 printf ("ucl: emitted json in %.4f seconds\n", seconds);
[all...]
/freebsd-current/contrib/llvm-project/lldb/source/Plugins/Process/gdb-remote/
H A DGDBRemoteClientBase.h40 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,
49 // If interrupt_timeout == 0 seconds, don't interrupt the target.
59 std::chrono::seconds interrupt_timeout = std::chrono::seconds(0));
68 std::chrono::seconds interrupt_timeout,
73 // If interrupt_timeout == 0 seconds, only take the lock if the target is
80 std::chrono::seconds interrupt_timeout = std::chrono::seconds(
[all...]
H A DGDBRemoteCommunication.h107 std::chrono::seconds timeout);
112 std::chrono::seconds m_saved_timeout;
141 std::chrono::seconds SetPacketTimeout(std::chrono::seconds packet_timeout) {
147 std::chrono::seconds GetPacketTimeout() const { return m_packet_timeout; }
170 std::chrono::seconds m_packet_timeout;
/freebsd-current/contrib/ntp/libntp/lib/isc/unix/include/isc/
H A Dtime.h40 unsigned int seconds; member in struct:isc_interval
50 unsigned int seconds, unsigned int nanoseconds);
52 * Set 'i' to a value representing an interval of 'seconds' seconds and
84 unsigned int seconds; member in struct:isc_time
91 isc_time_set(isc_time_t *t, unsigned int seconds, unsigned int nanoseconds);
93 * Set 't' to a value which represents the given number of seconds and
100 * isc_interval_set(i, seconds, nanoseconds);
243 * Return the number of seconds since the epoch stored in a time structure.
253 * Ensure the number of seconds i
[all...]
/freebsd-current/contrib/llvm-project/libcxx/src/
H A Dchrono.cpp99 static constexpr const seconds nt_to_unix_epoch{11644473600};
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());
142 system_clock::time_point system_clock::from_time_t(time_t t) noexcept { return system_clock::time_point(seconds(t)); }
165 return steady_clock::time_point(seconds(tp.tv_sec) + nanoseconds(tp.tv_nsec));
186 auto seconds = counter.QuadPart / freq.QuadPart; local
188 auto dur = seconds * nano::den + fractions * nano::den / freq.QuadPart;
199 return steady_clock::time_point(seconds(ts.tv_sec) + nanoseconds(ts.tv_nsec));
219 return steady_clock::time_point(seconds(t
[all...]
/freebsd-current/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/predicates/
H A Dtst.predcache.ksh163 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-current/share/examples/ipfilter/rules/
H A Dipmon.conf8 match { logtag = 2000, every 10 seconds; }
/freebsd-current/contrib/llvm-project/llvm/lib/Support/
H A DChrono.cpp67 long((TP.time_since_epoch() % std::chrono::seconds(1))
109 void format_provider<UtcTime<std::chrono::seconds>>::format(
110 const UtcTime<std::chrono::seconds> &T, raw_ostream &OS, StringRef Style) {
112 UtcTime<seconds> Truncated =
113 UtcTime<seconds>(duration_cast<seconds>(T.time_since_epoch()));
122 TimePoint<seconds> Truncated = time_point_cast<seconds>(T);
/freebsd-current/contrib/llvm-project/libcxx/include/__chrono/
H A Dconvert_to_timespec.h31 seconds __s = duration_cast<seconds>(__ns);
H A Dcalendar.h30 using local_seconds = local_time<seconds>;
/freebsd-current/usr.bin/rusers/
H A Drusers.c102 int days, hours, minutes, seconds; local
133 seconds = idle;
134 days = seconds / (60 * 60 * 24);
135 seconds %= (60 * 60 * 24);
136 hours = seconds / (60 * 60);
137 seconds %= (60 * 60);
138 minutes = seconds / 60;
139 seconds %= 60;
141 sprintf(idle_time, "%d:%02d", minutes, seconds);
144 hours, minutes, seconds);
[all...]
/freebsd-current/usr.sbin/mfiutil/
H A Dmfi_cmd.c325 print_time_humanized(uint seconds) argument
328 if (seconds > 3600) {
329 printf("%u:", seconds / 3600);
331 if (seconds > 60) {
332 seconds %= 3600;
333 printf("%02u:%02u", seconds / 60, seconds % 60);
335 printf("%us", seconds);
342 uint seconds; local
349 seconds
[all...]
/freebsd-current/sys/fs/smbfs/
H A Dsmbfs_subr.c52 smb_time_local2server(struct timespec *tsp, int tzoff, u_long *seconds) argument
54 *seconds = tsp->tv_sec - tzoff * 60 /*- tz_minuteswest * 60 -
59 smb_time_server2local(u_long seconds, int tzoff, struct timespec *tsp) argument
61 tsp->tv_sec = seconds + tzoff * 60;
65 * Number of seconds between 1970 and 1601 year
81 u_long seconds; local
83 smb_time_local2server(tsp, 0, &seconds);
84 *nsec = (((int64_t)(seconds) & ~1) + DIFF1970TO1601) * (int64_t)10000000;
/freebsd-current/usr.bin/top/
H A Dutils.c220 /* format_time(seconds) - format number of seconds into a suitable
237 format_time(long seconds) argument
242 if (seconds < 0 || seconds > (99999l * 360l))
246 else if (seconds >= (1000l * 60l))
249 sprintf(result, "%5.1fH", (double)seconds / (double)(60l * 60l));
261 seconds / 60l, seconds % 60l);
/freebsd-current/contrib/kyua/utils/
H A Ddatetime.cpp62 seconds(0),
70 /// \param seconds_ The seconds in the delta.
76 seconds(seconds_),
112 return seconds * 1000000 + useconds;
124 return seconds == other.seconds && useconds == other.useconds;
148 return seconds < other.seconds ||
149 (seconds == other.seconds
[all...]

Completed in 178 milliseconds

12345678910