Home
last modified time | relevance | path

Searched refs:seconds (Results 1 – 25 of 1163) sorted by relevance

12345678910>>...47

/netbsd-src/usr.bin/quota/
H A Dprintquota.c100 timeprt(char *buf, size_t len, time_t now, time_t seconds) in timeprt() argument
104 if (now > seconds) in timeprt()
107 seconds -= now; in timeprt()
109 minutes = (seconds + MINUTE / 2) / MINUTE; in timeprt()
110 hours = (seconds + HOUR / 2) / HOUR; in timeprt()
111 days = (seconds + DAY / 2) / DAY; in timeprt()
112 years = (seconds + YEAR / 2) / YEAR; in timeprt()
113 months = (seconds + MONTH / 2) / MONTH; in timeprt()
114 weeks = (seconds + WEEK / 2) / WEEK; in timeprt()
146 timepprt(char *buf, size_t len, time_t seconds, int hflag) in timepprt() argument
[all …]
/netbsd-src/external/mpl/bind/dist/lib/isc/
H A Dtime.c57 isc_time_set(isc_time_t *t, unsigned int seconds, unsigned int nanoseconds) {
61 t->seconds = seconds; in isc_interval_set()
69 t->seconds = 0;
78 if (t->seconds == 0 && t->nanoseconds == 0) { in isc_interval_iszero()
95 * Ensure the tv_sec value fits in t->seconds.
97 INSIST(sizeof(ts.tv_sec) <= sizeof(t.seconds) ||
100 t.seconds = ts.tv_sec; in isc_time_set()
123 .seconds = ts.tv_sec, in isc_time_isepoch()
148 * Ensure the resulting seconds valu in time_now()
60 isc_interval_set(isc_interval_t * i,unsigned int seconds,unsigned int nanoseconds) isc_interval_set() argument
99 isc_time_set(isc_time_t * t,unsigned int seconds,unsigned int nanoseconds) isc_time_set() argument
323 time_t seconds; isc_time_secondsastimet() local
[all...]
/netbsd-src/external/mpl/dhcp/bind/dist/lib/isc/unix/
H A Dtime.c66 isc_interval_set(isc_interval_t *i, unsigned int seconds, in isc_interval_set() argument
71 i->seconds = seconds; in isc_interval_set()
80 if (i->seconds == 0 && i->nanoseconds == 0) { in isc_interval_iszero()
97 isc_time_set(isc_time_t *t, unsigned int seconds, unsigned int nanoseconds) { in isc_time_set() argument
101 t->seconds = seconds; in isc_time_set()
109 t->seconds = 0; in isc_time_settoepoch()
118 if (t->seconds == 0 && t->nanoseconds == 0) { in isc_time_isepoch()
145 if (sizeof(ts.tv_sec) > sizeof(t->seconds) && in time_now()
151 t->seconds = ts.tv_sec; in time_now()
192 if ((ts.tv_sec > INT_MAX || i->seconds > INT_MAX) && in isc_time_nowplusinterval()
[all …]
/netbsd-src/external/gpl3/gcc/dist/libgfortran/intrinsics/
H A Dsignal.c114 alarm_sub_i4 (int * seconds __attribute__ ((unused)), in alarm_sub_i4() argument
124 *status = alarm (*seconds); in alarm_sub_i4()
129 alarm (*seconds); in alarm_sub_i4()
144 alarm_sub_i8 (int *seconds __attribute__ ((unused)), in alarm_sub_i8() argument
154 *status = alarm (*seconds); in alarm_sub_i8()
159 alarm (*seconds); in alarm_sub_i8()
175 alarm_sub_int_i4 (int *seconds __attribute__ ((unused)), in alarm_sub_int_i4() argument
185 *status = alarm (*seconds); in alarm_sub_int_i4()
190 alarm (*seconds); in alarm_sub_int_i4()
205 alarm_sub_int_i8 (int *seconds __attribute__ ((unused)), in alarm_sub_int_i8() argument
[all …]
H A Dsleep.c50 sleep_i4_sub (GFC_INTEGER_4 *seconds) in sleep_i4_sub() argument
52 sleep (*seconds < 0 ? 0 : (unsigned int) *seconds); in sleep_i4_sub()
60 sleep_i8_sub (GFC_INTEGER_8 *seconds) in sleep_i8_sub() argument
62 sleep (*seconds < 0 ? 0 : (unsigned int) *seconds); in sleep_i8_sub()
/netbsd-src/external/gpl3/gcc.old/dist/libgfortran/intrinsics/
H A Dsignal.c114 alarm_sub_i4 (int * seconds __attribute__ ((unused)), in alarm_sub_i4() argument
124 *status = alarm (*seconds); in alarm_sub_i4()
129 alarm (*seconds); in alarm_sub_i4()
144 alarm_sub_i8 (int *seconds __attribute__ ((unused)), in alarm_sub_i8() argument
154 *status = alarm (*seconds); in alarm_sub_i8()
159 alarm (*seconds); in alarm_sub_i8()
175 alarm_sub_int_i4 (int *seconds __attribute__ ((unused)), in alarm_sub_int_i4() argument
185 *status = alarm (*seconds); in alarm_sub_int_i4()
190 alarm (*seconds); in alarm_sub_int_i4()
205 alarm_sub_int_i8 (int *seconds __attribute__ ((unused)), in alarm_sub_int_i8() argument
[all …]
H A Dsleep.c50 sleep_i4_sub (GFC_INTEGER_4 *seconds) in sleep_i4_sub() argument
52 sleep (*seconds < 0 ? 0 : (unsigned int) *seconds); in sleep_i4_sub()
60 sleep_i8_sub (GFC_INTEGER_8 *seconds) in sleep_i8_sub() argument
62 sleep (*seconds < 0 ? 0 : (unsigned int) *seconds); in sleep_i8_sub()
/netbsd-src/games/rogue/
H A Dmachdep.c235 time_t seconds; in md_gct() local
237 time(&seconds); in md_gct()
238 t = localtime(&seconds); in md_gct()
268 time_t seconds; in md_gfmt() local
272 seconds = sbuf.st_mtime; in md_gfmt()
273 t = localtime(&seconds); in md_gfmt()
408 time_t seconds; in md_gseed() local
410 time(&seconds); in md_gseed()
411 return((int)seconds); in md_gseed()
/netbsd-src/external/bsd/iscsi/dist/doc/
H A DPERFORMANCE17 8192 bytes/request: 8 MB written in 0.33 seconds --> 24.35 MB/sec
18 16384 bytes/request: 8 MB written in 0.30 seconds --> 26.74 MB/sec
19 32768 bytes/request: 8 MB written in 0.20 seconds --> 39.06 MB/sec
20 65536 bytes/request: 8 MB written in 0.15 seconds --> 52.95 MB/sec
21 131072 bytes/request: 8 MB written in 0.12 seconds --> 66.74 MB/sec
22 262144 bytes/request: 8 MB written in 0.10 seconds --> 77.76 MB/sec
23 8192 bytes/request: 8 MB read in 0.37 seconds --> 21.34 MB/sec
24 16384 bytes/request: 8 MB read in 0.19 seconds --> 41.47 MB/sec
25 32768 bytes/request: 8 MB read in 0.13 seconds --> 62.04 MB/sec
26 65536 bytes/request: 8 MB read in 0.11 seconds --> 70.99 MB/sec
[all …]
/netbsd-src/external/bsd/unbound/dist/sldns/
H A Dparseutil.c78 time_t seconds; in sldns_mktime_from_utc() local
91 seconds = minutes * 60 + tm->tm_sec; in sldns_mktime_from_utc()
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()
241 if(seconds > maxint-i) { in sldns_str2period()
245 seconds += i; in sldns_str2period()
250 if(i > maxint/60 || seconds > maxint-(i*60)) { in sldns_str2period()
254 seconds += i * 60; in sldns_str2period()
[all …]
/netbsd-src/external/apache2/llvm/dist/libcxx/src/
H A Dchrono.cpp74 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()
/netbsd-src/external/mpl/bind/dist/lib/isccfg/
H A Dduration.c174 /* Record seconds. */ in isccfg_duration_fromtext()
234 * units is lost, and is treated as seconds from now on. in isccfg_duration_toseconds()
246 uint64_t seconds = 0;
250 seconds += (uint64_t)duration->parts[6]; /* Seconds */
251 seconds += (uint64_t)duration->parts[5] * 60; /* Minutes */
252 seconds += (uint64_t)duration->parts[4] * 3600; /* Hours */
253 seconds += (uint64_t)duration->parts[3] * 86400; /* Days */
254 seconds += (uint64_t)duration->parts[2] * 86400 * 7; /* Weeks */
259 seconds += (uint64_t)duration->parts[1] * 86400 * 31; /* Months */
260 seconds
224 uint64_t seconds = 0; isccfg_duration_toseconds() local
[all...]
/netbsd-src/external/ibm-public/postfix/dist/src/smtpstone/
H A Dhashed-deferred11 time: 1:58 = 118 seconds
15 time: 1:50 = 110 seconds
21 time: 1:56 = 116 seconds
25 time: 1:48 = 108 seconds
29 time: 1:52 = 112 seconds
34 machine, it takes some 5 seconds to scan an empty depth=2 deferred
35 queue unless the blocks happen to be cached. During those 5 seconds
H A Dhashed-incoming18 total time: 2:35 = 155 seconds
25 total time: 2:26 = 146 seconds
34 total time: 2:44 = 164 seconds
41 total time: 2:51 = 171 seconds
48 total time: 2:43 = 163 seconds
H A Dmx-explode1 MX needs 12 seconds per 1000 different remote destinations.
8 Total time: 13 seconds
14 Total time: 25 seconds
23 Total time: 13 seconds
29 Total time: 24 seconds
/netbsd-src/external/mpl/bind/dist/tests/isc/
H A Dtimer_test.c53 static int seconds;
148 isc_interval_set(&interval, seconds, nanoseconds);
188 seconds = 0;
191 isc_interval_set(&interval, seconds, nanoseconds); in ticktock()
214 isc_interval_set(&interval, seconds, nanoseconds); in ticktock()
246 seconds = 1; in ticktock()
249 isc_interval_set(&interval, seconds, nanoseconds); in ticktock()
277 isc_interval_set(&interval, seconds, nanoseconds); in ISC_RUN_TEST_IMPL()
300 isc_interval_set(&interval, seconds, nanoseconds); in test_idle()
315 seconds in test_idle()
55 static int seconds; global() variable
[all...]
/netbsd-src/external/mpl/bind/dist/bin/tests/system/journal/ns2/
H A Dmanaged-keys.bind.in2 $TTL 0 ; 0 seconds
5 0 ; refresh (0 seconds)
6 0 ; retry (0 seconds)
7 0 ; expire (0 seconds)
8 0 ; minimum (0 seconds)
/netbsd-src/external/public-domain/tz/dist/
H A Dleapseconds1 # 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 ar
[all...]
H A Dziguard.awk54 hh, mm, ss, seconds, dot_dddd, subseconds)
63 seconds = 3600 * hh + 60 * mm + ss
65 seconds += 0.5 < subseconds || ((subseconds == 0.5) && (seconds % 2));
67 seconds / 3600, seconds / 60 % 60, seconds % 60)
217 # Normally, prefer whole seconds. However, prefer subseconds
/netbsd-src/crypto/external/bsd/openssh/dist/
H A Dprogressmeter.c137 int hours, minutes, seconds; in refresh_progress_meter() local
217 seconds = bytes_left / bytes_per_second; in refresh_progress_meter()
219 seconds = elapsed; in refresh_progress_meter()
221 hours = seconds / 3600; in refresh_progress_meter()
222 seconds -= hours * 3600; in refresh_progress_meter()
223 minutes = seconds / 60; in refresh_progress_meter()
224 seconds -= minutes * 60; in refresh_progress_meter()
228 hours, minutes, seconds); in refresh_progress_meter()
230 xextendf(&buf, NULL, " %02d:%02d", minutes, seconds); in refresh_progress_meter()
/netbsd-src/external/mpl/bind/dist/bin/tests/system/dnssec/ns4/
H A Dmanaged-keys.bind.in13 $TTL 0 ; 0 seconds
16 0 ; refresh (0 seconds)
17 0 ; retry (0 seconds)
18 0 ; expire (0 seconds)
19 0 ; minimum (0 seconds)
/netbsd-src/external/apache2/llvm/dist/libcxx/utils/google-benchmark/src/
H A Dbenchmark_runner.cc67 const MemoryManager::Result& memory_result, double seconds) { in CreateRunReport() argument
101 internal::Finish(&report.counters, results.iterations, seconds, b.threads); in CreateRunReport()
191 double seconds; member
233 i.seconds = i.results.cpu_time_used; in DoNIterations()
235 i.seconds = i.results.manual_time_used; in DoNIterations()
237 i.seconds = i.results.real_time_used; in DoNIterations()
246 double multiplier = min_time * 1.4 / std::max(i.seconds, 1e-9); in PredictNumItersNeeded()
252 bool is_significant = (i.seconds / min_time) > 0.1; in PredictNumItersNeeded()
272 i.seconds >= min_time || // The elapsed time is large enough. in ShouldReportIterationResults()
330 b, i.results, memory_iterations, memory_result, i.seconds); in DoOneRepetition()
H A Dsleep.cc31 void SleepForSeconds(double seconds) { in SleepForSeconds() argument
32 SleepForMilliseconds(static_cast<int>(kNumMillisPerSecond * seconds)); in SleepForSeconds()
47 void SleepForSeconds(double seconds) {
48 SleepForMicroseconds(static_cast<int>(seconds * kNumMicrosPerSecond));
/netbsd-src/external/apache2/llvm/dist/llvm/utils/benchmark/src/
H A Dbenchmark.cc119 double seconds) { in CreateRunReport() argument
133 if (results.bytes_processed > 0 && seconds > 0.0) { in CreateRunReport()
134 bytes_per_second = (results.bytes_processed / seconds); in CreateRunReport()
137 if (results.items_processed > 0 && seconds > 0.0) { in CreateRunReport()
138 items_per_second = (results.items_processed / seconds); in CreateRunReport()
154 internal::Finish(&report.counters, seconds, b.threads); in CreateRunReport()
227 double seconds = results.cpu_time_used; in RunBenchmark() local
229 seconds = results.manual_time_used; in RunBenchmark()
231 seconds = results.real_time_used; in RunBenchmark()
243 || seconds >= min_time // the elapsed time is large enough in RunBenchmark()
[all …]
H A Dsleep.cc31 void SleepForSeconds(double seconds) { in SleepForSeconds() argument
32 SleepForMilliseconds(static_cast<int>(kNumMillisPerSecond * seconds)); in SleepForSeconds()
47 void SleepForSeconds(double seconds) {
48 SleepForMicroseconds(static_cast<int>(seconds * kNumMicrosPerSecond));

12345678910>>...47