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

123456789

/freebsd-13-stable/contrib/llvm-project/llvm/lib/Support/Unix/
H A DWatchdog.inc21 Watchdog::Watchdog(unsigned int seconds) {
23 alarm(seconds);
H A DUnix.h83 return std::chrono::seconds(TV.tv_sec) +
93 RetVal.tv_nsec = (TP.time_since_epoch() % seconds(1)).count();
103 RetVal.tv_usec = (TP.time_since_epoch() % seconds(1)).count();
/freebsd-13-stable/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_common_nolibc.cpp27 void SleepForSeconds(int seconds) { internal_sleep(seconds); } argument
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Support/Windows/
H A DWatchdog.inc20 Watchdog::Watchdog(unsigned int seconds) {}
/freebsd-13-stable/lib/libc/gen/
H A Dsleep.c48 __sleep(unsigned int seconds) argument
54 * Avoid overflow when `seconds' is huge. This assumes that
57 if (seconds > INT_MAX)
58 return (seconds - INT_MAX + __sleep(INT_MAX));
60 time_to_sleep.tv_sec = seconds;
67 return (seconds); /* best guess */
/freebsd-13-stable/contrib/ntp/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-13-stable/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-13-stable/sys/net/route/
H A Droute_temporal.c88 int seconds; local
100 seconds = (next_expire - time_uptime);
101 if (seconds < 0)
102 seconds = 0;
103 callout_reset_sbt(&rnh->expire_callout, SBT_1S * seconds,
128 int seconds; local
139 seconds = (rt->rt_expire - time_uptime);
140 if (seconds < 0)
141 seconds = 0;
142 callout_reset_sbt(&rnh->expire_callout, SBT_1S * seconds,
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/Support/
H A DCachePruning.h32 llvm::Optional<std::chrono::seconds> Interval = std::chrono::seconds(1200);
35 /// seconds, it is removed from the cache. A value of 0 disables the
37 std::chrono::seconds Expiration = std::chrono::hours(7 * 24); // 1w
66 /// which means a pruning interval of 30 seconds, expiration time of 24 hours
H A DWatchdog.h27 Watchdog(unsigned int seconds);
/freebsd-13-stable/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-13-stable/contrib/ntp/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-13-stable/contrib/llvm-project/libcxx/src/
H A Dchrono.cpp60 static _LIBCPP_CONSTEXPR const seconds nt_to_unix_epoch{11644473600};
81 return time_point(seconds(tp.tv_sec) + microseconds(tp.tv_nsec / 1000));
85 return time_point(seconds(tv.tv_sec) + microseconds(tv.tv_usec));
93 return time_t(duration_cast<seconds>(t.time_since_epoch()).count());
99 return system_clock::time_point(seconds(t));
128 return time_point(seconds(tp.tv_sec) + nanoseconds(tp.tv_nsec));
164 return time_point(seconds(tp.tv_sec) + nanoseconds(tp.tv_nsec));
/freebsd-13-stable/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-13-stable/contrib/ipfilter/rules/
H A Dipmon.conf8 match { logtag = 2000, every 10 seconds; }
/freebsd-13-stable/contrib/ldns/
H A Dduration.c68 duration->seconds = 0;
105 if (d1->seconds != d2->seconds) {
106 return (int) (d1->seconds - d2->seconds);
174 duration->seconds = (time_t) atoi(str+1);
246 if (duration->seconds > 0) {
247 count = count + 1 + digits_in_number(duration->seconds);
303 if (duration->seconds > 0) {
304 count = digits_in_number(duration->seconds);
[all...]
/freebsd-13-stable/usr.sbin/mfiutil/
H A Dmfi_cmd.c316 print_time_humanized(uint seconds) argument
319 if (seconds > 3600) {
320 printf("%u:", seconds / 3600);
322 if (seconds > 60) {
323 seconds %= 3600;
324 printf("%02u:%02u", seconds / 60, seconds % 60);
326 printf("%us", seconds);
333 uint seconds; local
340 seconds
[all...]
/freebsd-13-stable/usr.bin/rusers/
H A Drusers.c105 int days, hours, minutes, seconds; local
136 seconds = idle;
137 days = seconds / (60 * 60 * 24);
138 seconds %= (60 * 60 * 24);
139 hours = seconds / (60 * 60);
140 seconds %= (60 * 60);
141 minutes = seconds / 60;
142 seconds %= 60;
144 sprintf(idle_time, "%d:%02d", minutes, seconds);
147 hours, minutes, seconds);
[all...]
/freebsd-13-stable/sys/fs/smbfs/
H A Dsmbfs_subr.c54 smb_time_local2server(struct timespec *tsp, int tzoff, u_long *seconds) argument
56 *seconds = tsp->tv_sec - tzoff * 60 /*- tz_minuteswest * 60 -
61 smb_time_server2local(u_long seconds, int tzoff, struct timespec *tsp) argument
63 tsp->tv_sec = seconds + tzoff * 60;
67 * Number of seconds between 1970 and 1601 year
83 u_long seconds; local
85 smb_time_local2server(tsp, 0, &seconds);
86 *nsec = (((int64_t)(seconds) & ~1) + DIFF1970TO1601) * (int64_t)10000000;
/freebsd-13-stable/usr.bin/top/
H A Dutils.c222 /* format_time(seconds) - format number of seconds into a suitable
239 format_time(long seconds) argument
244 if (seconds < 0 || seconds > (99999l * 360l))
248 else if (seconds >= (1000l * 60l))
251 sprintf(result, "%5.1fH", (double)seconds / (double)(60l * 60l));
263 seconds / 60l, seconds % 60l);
/freebsd-13-stable/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...]
/freebsd-13-stable/contrib/llvm-project/lldb/source/Plugins/Process/gdb-remote/
H A DGDBRemoteCommunication.h86 std::chrono::seconds timeout);
91 std::chrono::seconds m_saved_timeout;
120 std::chrono::seconds SetPacketTimeout(std::chrono::seconds packet_timeout) {
126 std::chrono::seconds GetPacketTimeout() const { return m_packet_timeout; }
149 std::chrono::seconds m_packet_timeout;
/freebsd-13-stable/contrib/ldns/ldns/
H A Dduration.h59 time_t seconds; member in struct:ldns_duration_struct
/freebsd-13-stable/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/java_api/src/
H A DTestDrop.java43 static int seconds; field in class:TestDrop
48 if (seconds <= 0) {
58 }, seconds * 1000L);
108 System.err.println("usage: java TestDrop [ seconds ]");
117 seconds = Integer.parseInt(args[0]);
/freebsd-13-stable/crypto/openssh/
H A Dprogressmeter.c47 #define STALL_TIME 5 /* we're stalled after this many seconds */
128 int hours, minutes, seconds; local
203 seconds = bytes_left / bytes_per_second;
205 seconds = elapsed;
207 hours = seconds / 3600;
208 seconds -= hours * 3600;
209 minutes = seconds / 60;
210 seconds -= minutes * 60;
214 "%d:%02d:%02d", hours, minutes, seconds);
217 " %02d:%02d", minutes, seconds);
[all...]

Completed in 312 milliseconds

123456789