/netbsd/external/bsd/ntp/dist/lib/isc/unix/ |
H A D | time.c | 95 i->seconds = seconds; in isc_interval_set() 123 t->seconds = seconds; in isc_time_set() 230 t->seconds = tv.tv_sec + i->seconds; in isc_time_nowplusinterval() 245 if (t1->seconds < t2->seconds) in isc_time_compare() 247 if (t1->seconds > t2->seconds) in isc_time_compare() 269 ((long long)t->seconds + i->seconds > UINT_MAX)) in isc_time_add() 272 result->seconds = t->seconds + i->seconds; in isc_time_add() 289 if ((unsigned int)t->seconds < i->seconds || in isc_time_subtract() 290 ((unsigned int)t->seconds == i->seconds && in isc_time_subtract() 294 result->seconds = t->seconds - i->seconds; in isc_time_subtract() [all …]
|
/netbsd/usr.bin/quota/ |
H A D | printquota.c | 104 if (now > seconds) in timeprt() 107 seconds -= now; in timeprt() 155 if ((seconds / WEEK) > 0) { in timepprt() 157 seconds = seconds % WEEK; in timepprt() 163 if ((seconds / DAY) > 0) { in timepprt() 165 seconds = seconds % DAY; in timepprt() 171 if ((seconds / HOUR) > 0) { in timepprt() 173 seconds = seconds % HOUR; in timepprt() 179 if ((seconds / MINUTE) > 0) { in timepprt() 181 seconds / MINUTE); in timepprt() [all …]
|
/netbsd/external/mpl/bind/dist/lib/isc/unix/ |
H A D | time.c | 71 i->seconds = seconds; in isc_interval_set() 101 t->seconds = seconds; in isc_time_set() 109 t->seconds = 0; in isc_time_settoepoch() 198 t->seconds = ts.tv_sec + i->seconds; in isc_time_nowplusinterval() 213 if (t1->seconds < t2->seconds) { in isc_time_compare() 216 if (t1->seconds > t2->seconds) { in isc_time_compare() 234 if (t->seconds > UINT_MAX - i->seconds) { in isc_time_add() 237 result->seconds = t->seconds + i->seconds; in isc_time_add() 259 if (t->seconds < i->seconds) { in isc_time_subtract() 262 result->seconds = t->seconds - i->seconds; in isc_time_subtract() [all …]
|
/netbsd/external/gpl3/gcc.old/dist/libgfortran/intrinsics/ |
H A D | signal.c | 114 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() 215 *status = alarm (*seconds); in alarm_sub_int_i8() [all …]
|
H A D | sleep.c | 50 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/external/gpl3/gcc/dist/libgfortran/intrinsics/ |
H A D | signal.c | 114 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() 215 *status = alarm (*seconds); in alarm_sub_int_i8() [all …]
|
H A D | sleep.c | 50 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/games/rogue/ |
H A D | machdep.c | 235 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/external/bsd/iscsi/dist/doc/ |
H A D | PERFORMANCE | 17 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 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 27 131072 bytes/request: 8 MB read in 0.10 seconds --> 83.62 MB/sec [all …]
|
/netbsd/external/apache2/llvm/dist/libcxx/src/ |
H A D | chrono.cpp | 74 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/external/bsd/unbound/dist/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 …]
|
/netbsd/external/bsd/ntp/dist/ntpd/ |
H A D | refclock_tsyncpci.c | 180 unsigned int seconds; member 397 double seconds; in tsync_poll() local 594 seconds /= (double) 1000000.0; in tsync_poll() 624 pp->second = (int) seconds; in tsync_poll() 625 seconds = (seconds - (double) (pp->second / 1.0)) * 1000000000; in tsync_poll() 626 pp->nsec = (long) seconds; in tsync_poll() 790 st.seconds = (int)((signed long long)st.seconds + (signed long long)off); in ApplyTimeOffset() 816 pSt->seconds = 0; in SecTimeFromDoyTime() 828 pSt->seconds += pDt->hour * SECSPERHR; in SecTimeFromDoyTime() 830 pSt->seconds += pDt->second; in SecTimeFromDoyTime() [all …]
|
/netbsd/external/ibm-public/postfix/dist/src/smtpstone/ |
H A D | hashed-deferred | 11 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 D | hashed-incoming | 18 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
|
/netbsd/external/public-domain/tz/dist/ |
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 …]
|
H A D | ziguard.awk | 58 hh, mm, ss, seconds, dot_dddd, subseconds) 67 seconds = 3600 * hh + 60 * mm + ss 69 seconds += 0.5 < subseconds || ((subseconds == 0.5) && (seconds % 2)); 71 seconds / 3600, seconds / 60 % 60, seconds % 60)
|
/netbsd/external/mpl/bind/dist/lib/isc/tests/ |
H A D | timer_test.c | 56 static int seconds; variable 227 isc_interval_set(&interval, seconds, nanoseconds); in ticktock() 272 seconds = 0; in ticker() 275 isc_interval_set(&interval, seconds, nanoseconds); in ticker() 291 seconds = 1; in once_life() 294 isc_interval_set(&interval, seconds, nanoseconds); in once_life() 360 seconds = 1; in once_idle() 451 seconds = 0; in reset() 499 isc_interval_set(&interval, seconds, 0); in tick_event() 554 seconds = 1; in purge() [all …]
|
/netbsd/external/mpl/bind/dist/bin/tests/system/journal/ns2/ |
H A D | managed-keys.bind.in | 2 $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/crypto/external/bsd/openssh/dist/ |
H A D | progressmeter.c | 137 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/external/mpl/bind/dist/bin/tests/system/dnssec/ns4/ |
H A D | managed-keys.bind.in | 13 $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/external/apache2/llvm/dist/libcxx/utils/google-benchmark/src/ |
H A D | benchmark_runner.cc | 67 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 D | sleep.cc | 31 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/external/apache2/llvm/dist/llvm/utils/benchmark/src/ |
H A D | sleep.cc | 31 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));
|
H A D | benchmark.cc | 119 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() 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() 265 bool is_significant = (seconds / min_time) > 0.1; in RunBenchmark() 358 void State::SetIterationTime(double seconds) { in SetIterationTime() argument [all …]
|