Searched refs:now (Results 301 - 325 of 672) sorted by path

<<11121314151617181920>>

/freebsd-11-stable/sys/rpc/
H A Dclnt_vc.c136 struct timeval now; local
224 getmicrotime(&now);
225 ct->ct_xid = ((uint32_t)++disrupt) ^ __RPC_GETXID(&now);
H A Drpc_com.h60 #define __RPC_GETXID(now) ((uint32_t)curproc->p_pid ^ (uint32_t)(now)->tv_sec ^ \
61 (uint32_t)(now)->tv_usec)
65 #define __RPC_GETXID(now) ((uint32_t)getpid() ^ (uint32_t)(now)->tv_sec ^ \
66 (uint32_t)(now)->tv_usec)
/freebsd-11-stable/sys/sys/
H A Dcallout.h131 void callout_process(sbintime_t now);
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/x86/x86/
H A Ddelay.c55 uint64_t end, now; local
62 now = rdtsc();
63 end = now + tsc_freq * n / 1000000;
66 now = rdtsc();
67 } while (now < end);
76 uint64_t end, freq, now; local
95 now = 0;
102 now += mask - last + u + 1;
104 now += u - last;
106 } while (now < en
[all...]
H A Dpvclock.c173 uint64_t now, last; local
176 pvclock_read_time_info(ti, &now, &flags);
179 return (now);
188 if (last > now)
190 } while (!atomic_cmpset_64(&pvclock_last_cycles, last, now));
192 return (now);
/freebsd-11-stable/sys/xen/interface/hvm/
H A Dhvm_op.h153 uint64_t now; /* OUT */ member in struct:xen_hvm_get_time
/freebsd-11-stable/sys/xen/interface/
H A Dplatform.h358 uint64_t now; member in struct:xenpf_getidletime
/freebsd-11-stable/tools/build/
H A Dfutimens.c44 struct timeval now, tv[2], *tvp; local
87 if (gettimeofday(&now, NULL) == -1)
90 tv[0] = now;
92 tv[1] = now;
H A Dutimensat.c44 struct timeval now, tv[2], *tvp; local
91 if (gettimeofday(&now, NULL) == -1)
94 tv[0] = now;
96 tv[1] = now;
/freebsd-11-stable/tools/regression/priv/
H A Dpriv_settimeofday.c47 static struct timeval now; variable in typeref:struct:timeval
53 if (gettimeofday(&now, NULL) < 0) {
65 error = settimeofday(&now, NULL);
/freebsd-11-stable/tools/regression/security/cap_test/
H A Dcap_test_pdfork.c65 time_t now; local
91 now = time(NULL);
92 CHECK(now != (time_t)-1);
94 CHECK(now >= stat.st_birthtime);
95 CHECK((now - stat.st_birthtime) < 2);
/freebsd-11-stable/tools/tools/mctest/
H A Dmctest_run.sh62 now=`date "+%Y%m%d%H%M"`
65 output=$host\_$interface\_$size\_$number\.$now
74 $command -M $# -b $base -g $group -n $number -s $size -i $local_interface -t $gap > `uname -n`\_$size\_$number\.$now
/freebsd-11-stable/tools/tools/net80211/stumbler/
H A Dstumbler.c867 unsigned long elapsed_ms(struct timeval* now, struct timeval* prev) { argument
870 if (now->tv_sec > prev->tv_sec)
872 now->tv_usec;
874 assert(now->tv_sec == prev->tv_sec);
875 elapsed = now->tv_usec - prev->tv_usec;
879 elapsed += (now->tv_sec - prev->tv_sec)*1000;
917 struct timeval now; local
927 if (gettimeofday(&now, NULL) == -1)
932 elapsed = elapsed_ms(&now, &node->seen);
/freebsd-11-stable/tools/tools/net80211/w00t/ap/
H A Dap.c791 struct timeval to, now; local
798 if (gettimeofday(&now, NULL) == -1)
802 el = elapsed(&p->blast, &now);
813 el = elapsed(&p->plast, &now);
/freebsd-11-stable/tools/tools/net80211/w00t/libw00t/
H A Dw00t.c376 int elapsed(struct timeval *past, struct timeval *now) argument
380 el = now->tv_sec - past->tv_sec;
383 el = now->tv_usec - past->tv_usec;
387 el += now->tv_usec;
H A Dw00t.h54 int elapsed(struct timeval *past, struct timeval *now);
/freebsd-11-stable/tools/tools/net80211/w00t/prga/
H A Dprga.c335 struct timeval now; local
343 if (gettimeofday(&now, NULL) == -1)
347 el = elapsed(&p->last, &now);
364 now.tv_sec = el/1000/1000;
365 now.tv_usec = el - now.tv_sec*1000*1000;
369 if (select(p->rx+1, &fds, NULL, NULL, &now) == -1)
403 struct timeval now; local
413 if (gettimeofday(&now, NULL) == -1)
416 el = elapsed(&p->last, &now);
[all...]
/freebsd-11-stable/tools/tools/net80211/wesside/wesside/
H A Dwesside.c265 struct timeval now; local
286 if (gettimeofday(&now, NULL) == -1) {
292 ((double) now.tv_sec - real_start.tv_sec)/60.0);
1934 struct timeval now; local
1937 if (gettimeofday(&now, NULL) == -1) {
1942 sec = now.tv_sec - last_ip.tv_sec;
2278 int elapsedd(struct timeval *past, struct timeval *now) argument
2282 el = now->tv_sec - past->tv_sec;
2285 el = now->tv_usec - past->tv_usec;
2289 el += now
2392 struct timeval now; local
[all...]
/freebsd-11-stable/tools/tools/net80211/wlanwatch/
H A Dwlanwatch.c291 time_t now = time(NULL); local
292 char *cnow = ctime(&now);
/freebsd-11-stable/tools/tools/netrate/netreceive/
H A Dnetreceive.c162 struct timespec now, then, delta; local
163 /* now the parent collects and prints results */
180 clock_gettime(CLOCK_REALTIME, &now);
181 delta = now;
183 then = now;
/freebsd-11-stable/tools/tools/vhba/rptluns/
H A Dvhba_rptluns.c57 struct timeval now; local
65 getmicrotime(&now);
66 if (now.tv_usec & 0x1) {
/freebsd-11-stable/usr.bin/at/
H A Dat.c296 /* We no longer need suid root; now we just need to be able to write
647 time_t now; local
656 now = tv[0].tv_sec;
657 if ((t = localtime(&now)) == NULL)
878 * case, it's already been set. If not, set it now.
H A Dparsetime.c90 { "now", NOW,0 }, /* opt prefix for PLUS */
219 /* eat whitespace now - if we walk off the end of the argument,
327 * plus() parses a now + time
443 time_t now; local
445 time(&now);
446 lt = localtime(&now);
618 /* now is optional prefix for PLUS tree */
/freebsd-11-stable/usr.bin/calendar/
H A Dday.c49 settimes(time_t now, int before, int after, int friday, struct tm *tp1, struct tm *tp2) argument
54 localtime_r(&now, &tp);
60 time1 = now - SECSPERDAY * before;
63 time2 = now + SECSPERDAY * after;

Completed in 221 milliseconds

<<11121314151617181920>>