Home
last modified time | relevance | path

Searched full:elapsed (Results 1 – 25 of 318) sorted by relevance

12345678910>>...13

/freebsd/tests/sys/kqueue/libkqueue/
H A Dtimer.c441 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/ntp/include/
H A Dntp_calendar.h153 * Split a time stamp in seconds into elapsed days and elapsed seconds
160 * Split a time stamp in seconds into elapsed weeks and elapsed seconds
180 /* Get the number of leap years since epoch for the number of elapsed
187 * Convert elapsed years in Era into elapsed days in Era.
193 * Convert a number of elapsed month in a year into elapsed days
206 * Convert ELAPSED years/months/days of gregorian calendar to elapsed
219 * Convert ELAPSED years/months/days of gregorian calendar to elapsed
243 * Given the number of elapsed days in the calendar era, split this
244 * number into the number of elapsed years in 'res.quot' and the
245 * number of elapsed days of that year in 'res.rem'.
[all …]
/freebsd/tools/regression/posixsem/
H A Dposixsem.c57 #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/contrib/tnftp/src/
H A Dprogressbar.c140 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/share/man/man9/
H A Dmicrouptime.937 .Nd get the time elapsed since boot
61 functions store the time elapsed since boot as a
69 functions perform the same utility, but record the elapsed time as a
76 functions store the elapsed time as a
82 functions return the time elapsed since boot as a
/freebsd/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/docsExamples/
H A Drwinfo.d42 uint64_t elapsed; member
63 i[probefunc].elapsed += timestamp - i[probefunc].ts;
68 printf(" calls max bytes elapsed nsecs\n");
71 i["read"].maxbytes, i["read"].elapsed);
73 i["write"].maxbytes, i["write"].elapsed);
/freebsd/tools/tools/net80211/stumbler/
H A Dstumbler.c866 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/sbin/camcontrol/
H A Dprogress.c91 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/contrib/llvm-project/lldb/include/lldb/Target/
H A DStatistics.h49 /// A class that measures elapsed time in an exception safe way.
53 /// elapsed times. This helps LLDB measure statistics for many things that are
56 /// Objects that need to measure elapsed times should have a variable of type
60 /// ElapsedTime elapsed(m_time_xxx);
63 /// This class will increment the m_time_xxx variable with the elapsed time
72 /// Elapsed time in seconds to increment when this object goes out of scope.
80 StatsClock::duration elapsed = StatsClock::now() - m_start_time; in ~ElapsedTime() local
81 m_elapsed_time += elapsed; in ~ElapsedTime()
/freebsd/tools/test/stress2/misc/
H A Dtvnlru.sh37 # files = 500000, maxvnodes = 500000, ave=0.000018, max=0.000328, elapsed 4
38 # files = 500000, maxvnodes = 500000, ave=0.000018, max=0.000155, elapsed 4
39 # files = 500000, maxvnodes = 500000, ave=0.000018, max=0.000227, elapsed 4
40 # files = 500000, maxvnodes = 500000, ave=0.000014, max=0.000126, elapsed 3
42 # files = 1000000, maxvnodes = 500000, ave=0.000035, max=0.205627, elapsed 14
43 # files = 1000000, maxvnodes = 500000, ave=0.000033, max=0.205185, elapsed 14
44 # files = 1000000, maxvnodes = 500000, ave=0.000038, max=0.306502, elapsed 14
45 # files = 1000000, maxvnodes = 500000, ave=0.000037, max=0.205177, elapsed 14
188 "elapsed %2ld\n",
H A Dmmap47.sh17 # 19:51:56, elapsed 0 days, 00:01.03
18 # 19:53:01, elapsed 0 days, 00:02.08
19 # 19:54:06, elapsed 0 days, 00:03.13
20 # 19:55:40, elapsed 0 days, 00:04.47
27 # 19:56:44, elapsed 0 days, 00:05.51
/freebsd/contrib/ntp/sntp/libevent/sample/
H A Dtime-test.c47 double elapsed; in timeout_cb() local
51 elapsed = difference.tv_sec + in timeout_cb()
54 printf("timeout_cb called at %d: %.3f seconds elapsed.\n", in timeout_cb()
55 (int)newtime.tv_sec, elapsed); in timeout_cb()
/freebsd/contrib/libevent/sample/
H A Dtime-test.c47 double elapsed; in timeout_cb() local
51 elapsed = difference.tv_sec + in timeout_cb()
54 printf("timeout_cb called at %d: %.3f seconds elapsed.\n", in timeout_cb()
55 (int)newtime.tv_sec, elapsed); in timeout_cb()
/freebsd/tools/test/stress2/tools/
H A Dfast.sh32 log=/tmp/stress2.d/elapsed
33 lst=/tmp/elapsed.lst
34 lst2=/tmp/elapsed.order
35 tim=/tmp/elapsed.tim
/freebsd/crypto/openssh/
H A Dprogressmeter.c129 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/sys/contrib/openzfs/cmd/raidz_test/
H A Draidz_bench.c75 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/tools/tools/net80211/w00t/assoc/
H A Dassoc.c790 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/usr.bin/lastcomm/
H A Dlastcomm.c59 #define AC_ETIME 4 /* elapsed */
63 #define AC_FTIME 32 /* exit time (starting time + elapsed time )*/
93 flags |= AC_ETIME; /* elapsed time */ in main()
103 /* exit time (starting time + elapsed time )*/ in main()
170 /* elapsed time */ in main()
185 /* exit time (starting time + elapsed time )*/ in main()
/freebsd/sys/contrib/openzfs/tests/zfs-tests/cmd/
H A Dmmap_sync.c123 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/contrib/ntp/libntp/
H A Dcalyearstart.c25 u_int32 ndays; /* elapsed days since NTP starts */ in calyearstart()
44 u_int32 ndays; /* elapsed days since NTP starts */ in calmonthstart()
63 u_int32 ndays; /* elapsed days since NTP starts */ in calweekstart()
H A Dntp_calendar.c360 * are given as elapsed cycles:
363 * ON the first day, with 3hrs, 4minutes and 5 seconds elapsed.
366 * ELAPSED date units, which is the number of full years, full months
376 * (day number). This is the number of days elapsed since 0000-12-31
669 * Split a 64bit seconds value into elapsed days in 'res.hi' and
670 * elapsed seconds since midnight in 'res.lo' using explicit floor
767 * Split a 64bit seconds value into elapsed weeks in 'res.hi' and
768 * elapsed seconds since week start in 'res.lo' using explicit floor
864 * Given the number of elapsed days in the calendar era, split this
865 * number into the number of elapsed year
[all...]
/freebsd/share/man/man4/
H A Ddtrace_udp.4163 this->elapsed = (timestamp - last) / 1000;
166 printf(" %10d %30s:%-5d -> %-36s %6d\\n", this->elapsed,
174 this->elapsed = (timestamp - last) / 1000;
177 printf(" %10d %30s:%-5d <- %-36s %6d\\n", this->elapsed,
H A Ddtrace_udplite.4164 this->elapsed = (timestamp - last) / 1000;
167 printf(" %10d %30s:%-5d -> %-36s %6d\\n", this->elapsed,
175 this->elapsed = (timestamp - last) / 1000;
178 printf(" %10d %30s:%-5d <- %-36s %6d\\n", this->elapsed,
/freebsd/sys/contrib/openzfs/module/zfs/
H A Dzfs_ratelimit.c79 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/sys/contrib/dev/iwlwifi/mvm/
H A Dutils.c849 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...]

12345678910>>...13