Searched refs:tv_sec (Results 51 - 75 of 1127) sorted by relevance

1234567891011>>

/freebsd-11-stable/lib/libc/gen/
H A Dsleep.c60 time_to_sleep.tv_sec = seconds;
68 return (time_remaining.tv_sec +
H A Dtimes.c45 #define CONVTCK(r) (r.tv_sec * CLK_TCK + r.tv_usec / (1000000 / CLK_TCK))
65 c = t.tv_sec * CLK_TCK + t.tv_nsec / (1000000000 / CLK_TCK);
/freebsd-11-stable/contrib/sendmail/libsm/
H A Dclock.c108 ival.tv_sec = intvl / 1000;
109 ival.tv_usec = (intvl - ival.tv_sec * 1000) * 10;
167 itime.it_interval.tv_sec = 0;
169 if (itime.it_value.tv_sec < 0)
170 itime.it_value.tv_sec = 0;
171 if (itime.it_value.tv_sec == 0 && itime.it_value.tv_usec == 0)
237 clr.it_interval.tv_sec = 0;
239 clr.it_value.tv_sec = 0;
268 clr.it_interval.tv_sec = 0;
270 clr.it_value.tv_sec
[all...]
/freebsd-11-stable/contrib/netbsd-tests/lib/libc/sys/
H A Dt_getitimer.c73 if (it.it_value.tv_sec != 0 || it.it_value.tv_usec != 0)
78 if (it.it_value.tv_sec != 0 || it.it_value.tv_usec != 0)
83 if (it.it_value.tv_sec != 0 || it.it_value.tv_usec != 0)
122 it.it_value.tv_sec = 0;
125 it.it_interval.tv_sec = 0;
181 it.it_value.tv_sec = 4;
184 it.it_interval.tv_sec = 0;
189 it.it_value.tv_sec = 2;
192 it.it_interval.tv_sec = 0;
198 if (ot.it_value.tv_sec
[all...]
H A Dt_clock_gettime.c106 while ((time_t)tsa.tv_sec < endlimit) {
110 diff = 1000000000LL * (tsb.tv_sec - tsa.tv_sec)
120 (uintmax_t)tsa.tv_sec, (uintmax_t)tsa.tv_nsec,
121 (uintmax_t)tsb.tv_sec, (uintmax_t)tsb.tv_nsec, diff);
123 elapsed = 1000000000LL * (tsb.tv_sec - tsl.tv_sec)
135 tsa.tv_sec = tsb.tv_sec;
140 long long r = res.tv_sec * 100000000
[all...]
H A Dt_nanosleep.c76 tsn.tv_sec = 0;
95 (unsigned long long)tsn.tv_sec, tsn.tv_nsec,
96 (unsigned long long)ts1.tv_sec, ts1.tv_nsec,
97 (unsigned long long)ts2.tv_sec, ts2.tv_nsec);
116 ts.tv_sec = 1;
121 ts.tv_sec = 1;
126 ts.tv_sec = -1;
160 tsn.tv_sec = 10;
163 tsr.tv_sec = 0;
174 if (tsr.tv_sec
[all...]
/freebsd-11-stable/tools/tools/netrate/netsend/
H A Dnetsend.c74 tsa->tv_sec += tsb->tv_sec;
77 tsa->tv_sec++;
86 if (a->tv_sec > b->tv_sec)
88 if (a->tv_sec < b->tv_sec)
106 curtime.tv_sec = 0;
161 (intmax_t)a->interval.tv_sec, a->interval.tv_nsec,
162 (intmax_t)tmptime.tv_sec, tmptim
[all...]
/freebsd-11-stable/sys/nfs/
H A Dxdr_subs.h56 (t)->tv_sec = ntohl(((struct nfsv2_time *)(f))->nfsv2_sec); \
64 ((struct nfsv2_time *)(t))->nfsv2_sec = htonl((f)->tv_sec); \
73 (t)->tv_sec = ntohl(((struct nfsv3_time *)(f))->nfsv3_sec); \
78 ((struct nfsv3_time *)(t))->nfsv3_sec = htonl((f)->tv_sec); \
/freebsd-11-stable/contrib/ntp/include/
H A Dtimespecops.h75 x.tv_sec += b.tv_sec;
106 x.tv_sec -= b.tv_sec;
135 x.tv_sec = -a.tv_sec;
187 return format_time_fraction(x.tv_sec, x.tv_nsec, 9);
/freebsd-11-stable/contrib/netbsd-tests/lib/libc/gen/
H A Dt_sleep.c145 remain->tv_sec = sleep(delay->tv_sec);
169 tmo/1000 < delay->tv_sec && tmo/500 > delay->tv_sec)
170 delay->tv_sec = MAXSLEEP;
185 if (delay->tv_sec * BILLION + delay->tv_nsec > tmo * MILLION)
282 tslp.tv_sec = delta3 / 1000000000;
285 while (tslp.tv_sec <= MAXSLEEP) {
289 if (tslp.tv_sec > ALARM && sig == 0)
301 delta1 = (int64_t)tsb.tv_sec
[all...]
/freebsd-11-stable/usr.sbin/timed/timed/
H A Dslave.c87 electiontime = ntime.tv_sec + delay2;
88 fastelection = ntime.tv_sec + FASTTOUT;
107 if (ntime.tv_sec > electiontime) {
113 if (ntime.tv_sec >= looktime) {
136 looktime = ntime.tv_sec + delay2;
138 if (ntime.tv_sec >= looptime) {
157 looptime = ntime.tv_sec + delay2;
160 wait.tv_sec = min(electiontime,min(looktime,looptime)) - ntime.tv_sec;
161 if (wait.tv_sec <
[all...]
/freebsd-11-stable/contrib/unbound/util/
H A Dmini_event.c59 if(e->ev_timeout.tv_sec < f->ev_timeout.tv_sec)
61 if(e->ev_timeout.tv_sec > f->ev_timeout.tv_sec)
82 *base->time_secs = (time_t)base->time_tv->tv_sec;
147 wait->tv_sec = (time_t)-1;
153 if(p->ev_timeout.tv_sec > now->tv_sec ||
154 (p->ev_timeout.tv_sec==now->tv_sec
[all...]
H A Dtimehist.c55 if(v->tv_sec == 0 && v->tv_usec == 0) {
59 v->tv_sec *= 2;
63 v->tv_sec = 1;
122 if(x->tv_sec < y->tv_sec)
124 else if(x->tv_sec == y->tv_sec) {
154 (int)hist->buckets[i].lower.tv_sec,
156 (int)hist->buckets[i].upper.tv_sec,
177 (int)hist->buckets[i].lower.tv_sec,
[all...]
/freebsd-11-stable/sys/net/altq/
H A Daltq_rmclass.h76 #define TV_LT(a, b) (((a)->tv_sec < (b)->tv_sec) || \
77 (((a)->tv_usec < (b)->tv_usec) && ((a)->tv_sec <= (b)->tv_sec)))
83 if ((xxs = (a)->tv_sec - (b)->tv_sec)) { \
103 (res)->tv_sec = (a)->tv_sec; \
105 ++((res)->tv_sec); \
/freebsd-11-stable/contrib/ntp/libntp/
H A Dadjtime.c48 big_sec = (long)delta->tv_sec;
94 (long)olddelta->tv_sec = prev_correction / 1000000LL;
172 if (delta->tv_sec) {
189 newdelta.tv_sec = 0;
202 olddelta->tv_sec = olddelta->tv_usec = 0;
290 delta_nsec = 1e9 * (long)delta->tv_sec + 1e3 * delta->tv_usec;
370 olddelta->tv_sec = delta_nsec_old / 1e9;
372 * (long)olddelta->tv_sec) / 1000;
376 olddelta->tv_sec = 0;
/freebsd-11-stable/usr.bin/time/
H A Dtime.c154 ticks = hz * (ru.ru_utime.tv_sec + ru.ru_stime.tv_sec) +
264 after->tv_sec -= before->tv_sec;
267 after->tv_sec--, after->tv_usec += 1000000;
274 (intmax_t)after->tv_sec, decimal_point,
277 (intmax_t)ru->ru_utime.tv_sec, decimal_point,
280 (intmax_t)ru->ru_stime.tv_sec, decimal_point,
283 humantime(out, after->tv_sec, after->tv_usec/10000);
285 humantime(out, ru->ru_utime.tv_sec, r
[all...]
/freebsd-11-stable/lib/libc/isc/
H A Dev_timers.c78 x.tv_sec = sec;
87 x.tv_sec = addend1.tv_sec + addend2.tv_sec;
90 x.tv_sec++;
100 x.tv_sec = minuend.tv_sec - subtrahend.tv_sec;
105 x.tv_sec--;
112 long x = a.tv_sec
[all...]
/freebsd-11-stable/contrib/netbsd-tests/lib/libpthread/
H A Dt_condwait.c72 printf("started: %lld.%09ld sec\n", (long long)to.tv_sec,
75 ts.tv_sec += WAITTIME; /* Timeout wait */
84 (long long)te.tv_sec, te.tv_nsec);
86 (long long)to.tv_sec, to.tv_nsec);
89 double to_seconds = to.tv_sec + 1e-9 * to.tv_nsec;
94 ATF_REQUIRE_EQ(to.tv_sec, WAITTIME);
/freebsd-11-stable/sys/kern/
H A Dsubr_fattime.c144 t1 = tsp->tv_sec;
149 *dhp = (tsp->tv_sec & 1) * 100 + tsp->tv_nsec / 10000000;
225 tsp->tv_sec = (dt & 0x1f) << 1;
226 tsp->tv_sec += ((dt & 0x7e0) >> 5) * 60;
227 tsp->tv_sec += ((dt & 0xf800) >> 11) * 3600;
228 tsp->tv_sec += dh / 100;
250 tsp->tv_sec += DAY * day;
252 tsp->tv_sec += utc_offset();
274 ts.tv_sec = random();
275 } while (ts.tv_sec < T198
[all...]
/freebsd-11-stable/usr.bin/touch/
H A Dtouch.c79 ts[0].tv_sec = ts[1].tv_sec = 0;
132 ts[0].tv_sec += Aflag;
134 ts[1].tv_sec += Aflag;
198 ts[0].tv_sec += Aflag;
202 ts[1].tv_sec += Aflag;
270 tvp[0].tv_sec = tvp[1].tv_sec = mktime(t);
271 if (tvp[0].tv_sec == -1)
303 tvp[0].tv_sec
[all...]
/freebsd-11-stable/contrib/gcclibs/libiberty/
H A Dclock.c76 return (rusage.ru_utime.tv_sec * 1000000 + rusage.ru_utime.tv_usec
77 + rusage.ru_stime.tv_sec * 1000000 + rusage.ru_stime.tv_usec);
H A Dgetruntime.c99 return (rusage.ru_utime.tv_sec * 1000000 + rusage.ru_utime.tv_usec
100 + rusage.ru_stime.tv_sec * 1000000 + rusage.ru_stime.tv_usec);
/freebsd-11-stable/contrib/binutils/libiberty/
H A Dclock.c76 return (rusage.ru_utime.tv_sec * 1000000 + rusage.ru_utime.tv_usec
77 + rusage.ru_stime.tv_sec * 1000000 + rusage.ru_stime.tv_usec);
H A Dgetruntime.c99 return (rusage.ru_utime.tv_sec * 1000000 + rusage.ru_utime.tv_usec
100 + rusage.ru_stime.tv_sec * 1000000 + rusage.ru_stime.tv_usec);
/freebsd-11-stable/crypto/heimdal/lib/roken/
H A Dgettimeofday.c56 tp->tv_sec = (ull / 1000000i64);
72 tp->tv_sec = (long) t;

Completed in 153 milliseconds

1234567891011>>