Home
last modified time | relevance | path

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

12345678910>>...15

/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/crypto/openssl/test/
H A Dtiming_load_creds.c104 struct rusage start, end, elapsed; in main() local
174 perror("elapsed start"); in main()
200 timersub(&end.ru_utime, &start.ru_stime, &elapsed.ru_stime); in main()
201 timersub(&end.ru_utime, &start.ru_utime, &elapsed.ru_utime); in main()
203 print_timeval("user ", &elapsed.ru_utime); in main()
204 print_timeval("sys ", &elapsed.ru_stime); in main()
206 print_timeval("elapsed??", &e_elapsed); in main()
/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/usr.bin/lockf/tests/
H A Dlockf_test.sh162 elapsed=$((now - start))
164 if [ "$elapsed" -lt "$sub_delay" ]; then
231 elapsed=$((end - start))
233 if [ "$elapsed" -gt 5 ]; then
234 atf_fail "lockf seems to have dodged the SIGTERM ($elapsed passed)"
252 elapsed=$((end - start))
254 if [ "$elapsed" -gt 5 ]; then
255 atf_fail "lockf -T seems to have dodged the SIGTERM ($elapsed passed)"
/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",
/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/contrib/xz/src/xz/
H A Dmessage.c107 /// Elapsed time when the next progress message update should be done.
334 progress_speed(uint64_t uncompressed_pos, uint64_t elapsed) in progress_speed() argument
338 if (elapsed < 3000) in progress_speed()
348 / ((double)(elapsed) * (1024.0 / 1000.0)); in progress_speed()
370 /// Make a string indicating elapsed time. The format is either
378 // 32-bit variable is enough for elapsed time (136 years). in progress_time()
406 progress_remaining(uint64_t in_pos, uint64_t elapsed) in progress_remaining() argument
417 || in_pos < (UINT64_C(1) << 19) || elapsed < 8000) in progress_remaining()
424 * ((double)(elapsed) / 1000.0) / (double)(in_pos)); in progress_remaining()
531 const uint64_t elapsed = mytime_get_elapsed(); in message_progress_update() local
[all …]
/freebsd/sys/contrib/openzfs/cmd/raidz_test/
H A Draidz_bench.c76 double elapsed, d_bw; in run_gen_bench_impl() local
104 elapsed = NSEC2SEC((double)(gethrtime() - start)); in run_gen_bench_impl()
108 d_bw /= (1024.0 * 1024.0 * elapsed); in run_gen_bench_impl()
148 double elapsed, d_bw; in run_rec_bench_impl() local
196 elapsed = NSEC2SEC((double)(gethrtime() - start)); in run_rec_bench_impl()
200 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.c124 double elapsed = (t2.tv_sec - t1.tv_sec) * 1000.0; in main() local
125 elapsed += ((t2.tv_usec - t1.tv_usec) / 1000.0); in main()
126 if (elapsed > max_msync_time_ms) { in main()
127 fprintf(stderr, "slow msync: %f ms\n", elapsed); in main()
/freebsd/contrib/ntp/libntp/
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...]
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()
/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,

12345678910>>...15