/freebsd/tests/sys/kqueue/libkqueue/ |
H A D | timer.c | 441 long elapsed; in test_update() local 466 elapsed = now() - start; in test_update() 472 printf("timer expired after %ld us\n", elapsed); in test_update() 473 if (elapsed < MS_TO_US(1)) in test_update() 474 errx(1, "early timer expiration: %ld us", elapsed); in test_update() 475 if (elapsed > SEC_TO_US(1)) in test_update() 476 errx(1, "late timer expiration: %ld us", elapsed); in test_update() 486 long elapsed; in test_update_equal() local 512 elapsed = now() - start; in test_update_equal() 518 printf("timer expired after %ld us\n", elapsed); in test_update_equal() [all …]
|
/freebsd/contrib/tnftp/src/ |
H A D | progressbar.c | 140 double elapsed; local 253 elapsed = td.tv_sec + (td.tv_usec / 1000000.0); 258 if (elapsed > 0.0) 259 bytespersec /= elapsed; 270 if (bytes <= 0 || elapsed <= 0.0 || cursize > filesize) { 276 ((filesize - restart_point) / (bytes / elapsed) - 277 elapsed); 315 double elapsed; local 327 elapsed = td.tv_sec + (td.tv_usec / 1000000.0); 331 if (elapsed > 0.0) [all …]
|
/freebsd/sbin/camcontrol/ |
H A D | progress.c | 91 prog->elapsed = prog->now - prog->start; in progress_update() 92 if (done == 0 || prog->elapsed == 0 || prog->done / prog->elapsed == 0) { in progress_update() 95 prog->eta = prog->size / (prog->done / prog->elapsed) - prog->elapsed; in progress_update() 174 if (prog->elapsed > 0) { in progress_draw() 175 bytespersec /= prog->elapsed; in progress_draw() 181 if (prog->done == 0 || prog->elapsed <= 0 || prog->done > prog->size) { in progress_draw()
|
/freebsd/tools/regression/posixsem/ |
H A D | posixsem.c | 57 #define ELAPSED(elapsed, limit) (abs((elapsed) - (limit)) < 100) argument 786 u_int elapsed; in unlocked_timedwait() local 794 if (timedwait(id, 5000, &elapsed, 0) < 0) { in unlocked_timedwait() 798 if (!ELAPSED(elapsed, 0)) { in unlocked_timedwait() 799 fail_err("ksem_timedwait() of unlocked sem took %ums", elapsed); in unlocked_timedwait() 820 u_int elapsed; in expired_timedwait() local 828 if (timedwait(id, 2500, &elapsed, ETIMEDOUT) < 0) { in expired_timedwait() 832 if (!ELAPSED(elapsed, 2500)) { in expired_timedwait() 835 elapsed); in expired_timedwait() 856 u_int elapsed; in locked_timedwait() local [all …]
|
/freebsd/tools/test/stress2/tools/ |
H A D | fast.sh | 32 log=/tmp/stress2.d/elapsed 33 lst=/tmp/elapsed.lst 34 lst2=/tmp/elapsed.order 35 tim=/tmp/elapsed.tim
|
/freebsd/tools/tools/net80211/stumbler/ |
H A D | stumbler.c | 866 unsigned long elapsed = 0; in elapsed_ms() local 869 elapsed = 1000*1000 - prev->tv_usec + in elapsed_ms() 873 elapsed = now->tv_usec - prev->tv_usec; in elapsed_ms() 875 elapsed /= 1000; //ms in elapsed_ms() 877 elapsed += (now->tv_sec - prev->tv_sec)*1000; in elapsed_ms() 878 return elapsed; in elapsed_ms() 882 unsigned long elapsed = 0; in chanhop() local 888 elapsed = elapsed_ms(tv, &chaninfo.last_hop); in chanhop() 891 if (elapsed >= hopfreq) { in chanhop() 901 elapsed = hopfreq; in chanhop() [all …]
|
/freebsd/crypto/openssh/ |
H A D | progressmeter.c | 129 double elapsed, now; in refresh_progress_meter() local 151 elapsed = now - last_update; in refresh_progress_meter() 153 elapsed = now - start; in refresh_progress_meter() 160 if (elapsed != 0) in refresh_progress_meter() 161 cur_speed = (transferred / elapsed); in refresh_progress_meter() 198 stalled += elapsed; in refresh_progress_meter() 210 seconds = elapsed; in refresh_progress_meter()
|
/freebsd/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/docsExamples/ |
H A D | rwinfo.d | 42 uint64_t elapsed; member 63 i[probefunc].elapsed += timestamp - i[probefunc].ts; 71 i["read"].maxbytes, i["read"].elapsed); 73 i["write"].maxbytes, i["write"].elapsed);
|
/freebsd/sys/contrib/openzfs/cmd/raidz_test/ |
H A D | raidz_bench.c | 75 double elapsed, d_bw; in run_gen_bench_impl() local 103 elapsed = NSEC2SEC((double)(gethrtime() - start)); in run_gen_bench_impl() 107 d_bw /= (1024.0 * 1024.0 * elapsed); in run_gen_bench_impl() 147 double elapsed, d_bw; in run_rec_bench_impl() local 195 elapsed = NSEC2SEC((double)(gethrtime() - start)); in run_rec_bench_impl() 199 d_bw /= (1024.0 * 1024.0 * elapsed); in run_rec_bench_impl()
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/cmd/ |
H A D | mmap_sync.c | 123 double elapsed = (t2.tv_sec - t1.tv_sec) * 1000.0; in main() local 124 elapsed += ((t2.tv_usec - t1.tv_usec) / 1000.0); in main() 125 if (elapsed > max_msync_time_ms) { in main() 126 fprintf(stderr, "slow msync: %f ms\n", elapsed); in main()
|
/freebsd/tools/tools/net80211/w00t/assoc/ |
H A D | assoc.c | 790 int elapsed = 0; in main() local 795 elapsed = tv.tv_sec - start.tv_sec; in main() 796 if (elapsed == 0) { in main() 797 elapsed = tv.tv_usec - start.tv_usec; in main() 799 elapsed *= (elapsed-1)*1000*1000; in main() 800 elapsed += 1000*1000 - start.tv_usec; in main() 801 elapsed += tv.tv_usec; in main() 803 if (elapsed >= timeout) in main() 811 elapsed = timeout - elapsed; in main() 812 tv.tv_sec = elapsed/1000/1000; in main() [all …]
|
/freebsd/sys/contrib/openzfs/module/zfs/ |
H A D | zfs_ratelimit.c | 79 hrtime_t elapsed; in zfs_ratelimit() local 85 elapsed = now - rl->start; in zfs_ratelimit() 88 if (NSEC2SEC(elapsed) >= rl->interval) { in zfs_ratelimit()
|
/freebsd/tools/test/stress2/misc/ |
H A D | marcus4.sh | 79 elapsed=$((`date +%s` - start)) 80 if [ $elapsed -gt $((30 * 60)) ]; then 81 echo "Runtime is $elapsed seconds"
|
/freebsd/contrib/ntp/sntp/libevent/sample/ |
H A D | time-test.c | 47 double elapsed; in timeout_cb() local 51 elapsed = difference.tv_sec + in timeout_cb() 55 (int)newtime.tv_sec, elapsed); in timeout_cb()
|
/freebsd/contrib/libevent/sample/ |
H A D | time-test.c | 47 double elapsed; in timeout_cb() local 51 elapsed = difference.tv_sec + in timeout_cb() 55 (int)newtime.tv_sec, elapsed); in timeout_cb()
|
/freebsd/sys/contrib/openzfs/cmd/zpool_influxdb/ |
H A D | zpool_influxdb.c | 150 int64_t elapsed; in print_scan_status() local 217 elapsed = (int64_t)time(NULL) - (int64_t)ps->pss_pass_start - in print_scan_status() 219 elapsed = (elapsed > 0) ? elapsed : 1; in print_scan_status() 221 rate = pass_exam / elapsed; in print_scan_status() 225 elapsed = in print_scan_status() 228 elapsed = (elapsed > 0) ? elapsed : 1; in print_scan_status() 230 rate = pass_exam / elapsed; in print_scan_status()
|
/freebsd/sys/contrib/dev/iwlwifi/mvm/ |
H A D | utils.c | 849 u8 iwl_mvm_tcm_load_percentage(u32 airtime, u32 elapsed) in iwl_mvm_uapsd_agg_disconnect() 851 if (!elapsed) in iwl_mvm_uapsd_agg_disconnect() 854 return (100 * airtime / elapsed) / USEC_PER_MSEC; in iwl_mvm_uapsd_agg_disconnect() 858 iwl_mvm_tcm_load(struct iwl_mvm *mvm, u32 airtime, unsigned long elapsed) in iwl_mvm_uapsd_agg_disconnect() 860 u8 load = iwl_mvm_tcm_load_percentage(airtime, elapsed); in iwl_mvm_uapsd_agg_disconnect() 961 unsigned int elapsed, in iwl_mvm_calc_tcm_stats() 977 do_div(tpt, elapsed); in iwl_mvm_calc_tcm_stats() 991 do_div(tpt, elapsed * 100); in iwl_mvm_calc_tcm_stats() 1019 unsigned int elapsed = jiffies_to_msecs(ts - mvm->tcm.ts); in iwl_mvm_calc_tcm_stats() 1035 mvm->tcm.result.elapsed in iwl_mvm_recalc_tcm() 759 iwl_mvm_tcm_load_percentage(u32 airtime,u32 elapsed) iwl_mvm_tcm_load_percentage() argument 768 iwl_mvm_tcm_load(struct iwl_mvm * mvm,u32 airtime,unsigned long elapsed) iwl_mvm_tcm_load() argument 873 iwl_mvm_check_uapsd_agg_expected_tpt(struct iwl_mvm * mvm,unsigned int elapsed,int mac) iwl_mvm_check_uapsd_agg_expected_tpt() argument 931 unsigned int elapsed = jiffies_to_msecs(ts - mvm->tcm.ts); iwl_mvm_calc_tcm_stats() local [all...] |
/freebsd/contrib/netbsd-tests/lib/libc/sys/ |
H A D | t_clock_gettime.c | 117 long long elapsed; in check_timecounter() local 123 elapsed = 1000000000LL * (tsb.tv_sec - tsl.tv_sec) in check_timecounter() 127 (void)printf("%lld nsec\n", elapsed); in check_timecounter()
|
/freebsd/contrib/ntp/sntp/libevent/test/ |
H A D | regress_iocp.c | 94 DWORD elapsed; in count_wait_for() local 101 elapsed = GetTickCount(); in count_wait_for() 103 elapsed = GetTickCount() - elapsed; in count_wait_for() 104 ms -= elapsed; in count_wait_for()
|
/freebsd/contrib/libevent/test/ |
H A D | regress_iocp.c | 94 DWORD elapsed; in count_wait_for() local 101 elapsed = GetTickCount(); in count_wait_for() 103 elapsed = GetTickCount() - elapsed; in count_wait_for() 104 ms -= elapsed; in count_wait_for()
|
/freebsd/usr.sbin/bluetooth/bthidd/ |
H A D | bthidd.c | 54 static int32_t elapsed (int32_t tval); 168 if (elapsed(tval)) in main() 229 elapsed(int32_t tval) in elapsed() function
|
/freebsd/usr.bin/systat/ |
H A D | ifstat.c | 270 double elapsed = 0.0; in fetchifstat() local 321 elapsed = tv.tv_sec + (tv.tv_usec * 1e-6); in fetchifstat() 334 ifp->if_in_curtraffic /= elapsed; in fetchifstat() 335 ifp->if_out_curtraffic /= elapsed; in fetchifstat() 336 ifp->if_in_curpps /= elapsed; in fetchifstat() 337 ifp->if_out_curpps /= elapsed; in fetchifstat()
|
/freebsd/contrib/cortex-strings/benchmarks/multi/ |
H A D | harness.c | 394 double elapsed = (end.tv_sec - start.tv_sec) + (end.tv_nsec - start.tv_nsec) * 1e-9; in main() local 402 elapsed, in main() 403 elapsed, loops, ptest->name, count, in main() 404 (double)loops*count/(elapsed - bounced)/(1024*1024)); in main()
|
/freebsd/contrib/llvm-project/lldb/source/Target/ |
H A D | Statistics.cpp | 39 static double elapsed(const StatsTimepoint &start, const StatsTimepoint &end) { in elapsed() function 40 StatsDuration::Duration elapsed = in elapsed() local 42 return elapsed.count(); in elapsed() 127 elapsed(*m_launch_or_attach_time, *m_first_private_stop_time); in ToJSON() 132 elapsed(*m_launch_or_attach_time, *m_first_public_stop_time); in ToJSON()
|
/freebsd/usr.bin/lockf/tests/ |
H A D | lockf_test.sh | 137 elapsed=$((now - start)) 139 if [ "$elapsed" -lt "$sub_delay" ]; then
|