Searched refs:now (Results 76 - 100 of 672) sorted by relevance

1234567891011>>

/freebsd-11-stable/contrib/llvm-project/libcxx/src/
H A Dchrono.cpp54 system_clock::now() _NOEXCEPT
120 steady_clock::now() _NOEXCEPT
175 steady_clock::now() _NOEXCEPT
198 steady_clock::now() _NOEXCEPT
213 #error "Never use CLOCK_MONOTONIC for steady_clock::now on Apple platforms"
217 steady_clock::now() _NOEXCEPT
/freebsd-11-stable/contrib/ntp/lib/isc/
H A Dtimer.c201 schedule(isc__timer_t *timer, isc_time_t *now, isc_boolean_t signal_ok) { argument
235 result = isc_time_add(now, &timer->interval, &due);
310 isc_time_compare(&then, now) < 0) {
402 isc_time_t now; local
429 TIME_NOW(&now);
433 * complaining about "now" possibly being used without being
436 isc_time_settoepoch(&now);
448 result = isc_time_add(&now, interval, &timer->idle);
493 result = schedule(timer, &now, ISC_TRUE);
521 isc_time_t now; local
609 isc_time_t now; local
681 dispatch(isc__timermgr_t *manager, isc_time_t *now) argument
806 isc_time_t now; local
824 manager->due, now); local
1054 isc_time_t now; local
[all...]
/freebsd-11-stable/sys/net/altq/
H A Daltq_codel.c314 u_int64_t now)
334 c->vars.ldelay = now - *enqueue_time;
347 c->vars.first_above_time = now + c->params.interval;
350 if (codel_time_after(now, c->vars.first_above_time))
394 u_int64_t now; local
402 now = read_machclk();
403 drop = codel_should_drop(c, q, m, now);
408 } else if (codel_time_after_eq(now, c->vars.drop_next)) {
414 * that the next drop should happen now,
418 codel_time_after_eq(now,
313 codel_should_drop(struct codel *c, class_queue_t *q, struct mbuf *m, u_int64_t now) argument
[all...]
/freebsd-11-stable/contrib/ntp/ntpd/
H A Drefclock_dumbclock.c112 time_t now; local
146 time(&now);
148 tm_time_p = localtime(&now);
150 tm_time_p = gmtime(&now);
248 time_t now; local
269 time(&now);
273 reality_delta = asserted_time - now;
H A Dntp_timer.c210 * seconds from now and they continue on every 2**EVENT_TIMEOUT
230 sys$gettim(&vmstimer); /* that's "now" as abstime */
301 l_fp now; local
377 "no peer for too long, server running free now");
390 get_systime(&now);
398 check_leapsec(now.l_ui, &tnow,
460 check_leap_file(TRUE, now.l_ui, &tnow);
462 check_leap_file(FALSE, now.l_ui, &tnow);
543 u_int32 now ,
582 fired = leapsec_query(&lsdata, now, tpi
[all...]
/freebsd-11-stable/usr.bin/ruptime/
H A Druptime.c61 #define LEFTEARTH(h) (now - (h) > 4*24*60*60)
62 #define ISDOWN(h) (now - (h)->hs_wd.wd_recvtime > 11 * 60)
66 static time_t now; variable
206 (void)time(&now);
270 interval(now - hsp->hs_wd.wd_recvtime, "down"));
308 (ISDOWN(HS(a2)) ? HS(a2)->hs_wd.wd_recvtime - now
311 (ISDOWN(HS(a1)) ? HS(a1)->hs_wd.wd_recvtime - now
/freebsd-11-stable/contrib/ntp/lib/isc/unix/
H A Dtime.c383 time_t now; local
388 now = (time_t) t->seconds;
389 flen = strftime(buf, len, "%d-%b-%Y %X", localtime(&now));
400 time_t now; local
405 now = (time_t)t->seconds;
406 flen = strftime(buf, len, "%a, %d %b %Y %H:%M:%S GMT", gmtime(&now));
412 time_t now; local
417 now = (time_t)t->seconds;
418 flen = strftime(buf, len, "%Y-%m-%dT%H:%M:%SZ", gmtime(&now));
/freebsd-11-stable/contrib/tnftp/src/
H A Dprogressbar.c136 struct timeval now, wait; local
173 (void)gettimeofday(&now, NULL);
175 timersub(&now, &lastupdate, &wait);
177 lastupdate = now;
252 timersub(&now, &start, &td);
314 struct timeval now, td, wait; local
325 (void)gettimeofday(&now, NULL);
326 timersub(&now, &start, &td);
373 timersub(&now, &lastupdate, &wait);
487 * Right now, thi
[all...]
/freebsd-11-stable/usr.bin/systat/
H A Ddevs.c365 * For now, we don't support a fourth disk statistic. So there's
383 dsshow2(int diskcol, int diskrow, int dn, int lc, struct statinfo *now, struct statinfo *then) argument
394 elapsed_time = now->snap_time - then->snap_time;
397 elapsed_time = now->snap_time - devstat_compute_etime(
398 &now->dinfo->devices[di].creation_time, NULL);
401 if (devstat_compute_statistics(&now->dinfo->devices[di], then ?
418 dsshow3(int diskcol, int diskrow, int dn, int lc, struct statinfo *now, struct statinfo *then) argument
420 dsshow2(diskcol, diskrow, dn, lc, now, then);
424 dsshow(int maxdrives, int diskcol, int diskrow, struct statinfo *now, struct statinfo *then) argument
430 dsshow3(diskcol, diskrow, i, ++lc, now, the
[all...]
/freebsd-11-stable/contrib/ntp/sntp/libevent/
H A Devthread_pthread.c144 struct timeval now, abstime; local
146 evutil_gettimeofday(&now, NULL);
147 evutil_timeradd(&now, tv, &abstime);
/freebsd-11-stable/sys/sys/
H A Ddevicestat.h195 void devstat_start_transaction(struct devstat *ds, struct bintime *now);
200 struct bintime *now, struct bintime *then);
203 struct bintime *now);
/freebsd-11-stable/sys/kern/
H A Dsubr_devstat.c225 devstat_start_transaction(struct devstat *ds, struct bintime *now) argument
241 if (now != NULL)
242 ds->busy_from = *now;
295 struct bintime *now, struct bintime *then)
303 if (now == NULL) {
304 now = &lnow;
305 binuptime(now);
322 dt = *now;
328 dt = *now;
331 ds->busy_from = *now;
293 devstat_end_transaction(struct devstat *ds, uint32_t bytes, devstat_tag_type tag_type, devstat_trans_flags flags, struct bintime *now, struct bintime *then) argument
346 devstat_end_transaction_bio_bt(struct devstat *ds, struct bio *bp, struct bintime *now) argument
[all...]
/freebsd-11-stable/usr.bin/rwall/
H A Drwall.c130 time_t now; local
148 time(&now);
149 lt = localtime(&now);
/freebsd-11-stable/contrib/netbsd-tests/kernel/kqueue/
H A Dt_sig.c117 struct timeval then, now, diff; local
121 RL(gettimeofday(&now, NULL));
122 timersub(&now, &then, &diff);
/freebsd-11-stable/contrib/unbound/contrib/
H A Dunbound-querycachedb.py38 now = int(time.time())
42 (now, timestamp, expire, max(expire - now, 0)))
/freebsd-11-stable/contrib/unbound/util/data/
H A Dpacked_rrset.h412 * @param now: time that is subtracted from ttl before printout. Can be 0.
418 time_t now, char* dest, size_t dest_len);
434 * @param now: adjust the TTLs to be relative (subtract from all TTLs).
439 time_t now);
445 * @param now: adjust the TTLs to be absolute (add to all TTLs).
450 time_t now);
/freebsd-11-stable/contrib/unbound/daemon/
H A Dcachedump.c65 dump_rrset_line(RES* ssl, struct ub_packed_rrset_key* k, time_t now, size_t i) argument
68 if(!packed_rr_to_string(k, i, now, s, sizeof(s))) {
77 struct packed_rrset_data* d, time_t now)
83 if(d->ttl < now) return 1; /* expired */
88 (long long)(d->ttl - now),
94 if(!dump_rrset_line(ssl, k, now, i))
102 dump_rrset_lruhash(RES* ssl, struct lruhash* h, time_t now) argument
110 (struct packed_rrset_data*)e->data, now)) {
129 *worker->env.now)) {
168 time_t now)
76 dump_rrset(RES* ssl, struct ub_packed_rrset_key* k, struct packed_rrset_data* d, time_t now) argument
167 dump_msg(RES* ssl, struct query_info* k, struct reply_info* d, time_t now) argument
321 load_rr(RES* ssl, sldns_buffer* buf, struct regional* region, struct ub_packed_rrset_key* rk, struct packed_rrset_data* d, unsigned int i, int is_rrsig, int* go_on, time_t now) argument
[all...]
/freebsd-11-stable/contrib/ntp/sntp/libevent/test/
H A Dtest-dumpevents.c79 struct timeval now; local
148 evutil_gettimeofday(&now,NULL);
150 printf("Now= %ld.%06d\n",(long)now.tv_sec,(int)now.tv_usec);
/freebsd-11-stable/sys/dev/drm2/
H A Ddrm_irq.c66 * This IOCTL is deprecated, and will now return EINVAL for any busid not equal
327 * For now, no driver we have use that.
695 struct timeval now; local
697 microtime(&now);
700 now = ktime_sub(now, ktime_get_monotonic_offset());
703 return now;
802 unsigned long seq, struct timeval *now)
806 e->event.tv_sec = now->tv_sec;
807 e->event.tv_usec = now
800 send_vblank_event(struct drm_device *dev, struct drm_pending_vblank_event *e, unsigned long seq, struct timeval *now) argument
828 struct timeval now; local
985 struct timeval now; local
1114 struct timeval now; local
1277 struct timeval now; local
1307 struct timeval now; local
[all...]
/freebsd-11-stable/lib/libutil/
H A Dlogin_times.c118 u_short now = (u_short)((tt->tm_hour * 60) + tt->tm_min); local
121 ++now;
122 if (now >= ltm->lt_start && now < ltm->lt_end) {
/freebsd-11-stable/lib/csu/riscv/
H A Dcrti.S38 # this puts _gp into .dynsym, so symlook_obj can now find that (see reloc.c)
/freebsd-11-stable/share/examples/perfmon/
H A Dperfmon.c57 struct pmc_tstamp then, now; local
150 if (ioctl(fd, PMIOTSTAMP, &now) < 0)
160 printf("clocks (at %d-MHz): %qd\n", now.pmct_rate,
161 now.pmct_value - then.pmct_value);
/freebsd-11-stable/contrib/wpa/src/utils/
H A Deloop_win.c320 struct os_reltime now; local
322 os_get_reltime(&now);
331 if (os_reltime_before(&now, &timeout->time))
332 os_reltime_sub(&timeout->time, &now, remaining);
361 struct os_reltime now, requested, remaining; local
370 os_get_reltime(&now);
371 os_reltime_sub(&tmp->time, &now, &remaining);
393 struct os_reltime now, requested, remaining; local
402 os_get_reltime(&now);
403 os_reltime_sub(&tmp->time, &now,
535 struct os_reltime tv, now; local
[all...]
/freebsd-11-stable/usr.sbin/bluetooth/bthidd/
H A Dbthidd.c226 struct timeval now; local
228 gettimeofday(&now, NULL);
230 if (now.tv_sec - last.tv_sec >= tval) {
231 last = now;
/freebsd-11-stable/contrib/sendmail/src/
H A Dtimers.c103 struct timeval now; local
105 if (getrusage(RUSAGE_SELF, &ru) < 0 || gettimeofday(&now, NULL) < 0)
107 ptimer->ti_wall_sec = now.tv_sec;
108 ptimer->ti_wall_usec = now.tv_usec;
182 /* now add the timer to the stack */

Completed in 174 milliseconds

1234567891011>>