Lines Matching refs:now

25 nxt_realtime(nxt_realtime_t *now)  in nxt_realtime()  argument
31 now->sec = (nxt_time_t) ts.tv_sec; in nxt_realtime()
32 now->nsec = ts.tv_nsec; in nxt_realtime()
49 nxt_realtime(nxt_realtime_t *now) in nxt_realtime() argument
55 now->sec = (nxt_time_t) ts.tv_sec; in nxt_realtime()
56 now->nsec = ts.tv_nsec; in nxt_realtime()
72 nxt_realtime(nxt_realtime_t *now) in nxt_realtime() argument
78 now->sec = (nxt_time_t) ts.tv_sec; in nxt_realtime()
79 now->nsec = ts.tv_nsec; in nxt_realtime()
88 nxt_realtime(nxt_realtime_t *now) in nxt_realtime() argument
94 now->sec = (nxt_time_t) tv.tv_sec; in nxt_realtime()
95 now->nsec = tv.tv_usec * 1000; in nxt_realtime()
113 nxt_monotonic_time(nxt_monotonic_time_t *now) in nxt_monotonic_time() argument
119 now->monotonic = (nxt_nsec_t) ts.tv_sec * 1000000000 + ts.tv_nsec; in nxt_monotonic_time()
136 nxt_monotonic_time(nxt_monotonic_time_t *now) in nxt_monotonic_time() argument
142 now->monotonic = (nxt_nsec_t) ts.tv_sec * 1000000000 + ts.tv_nsec; in nxt_monotonic_time()
155 nxt_monotonic_time(nxt_monotonic_time_t *now) in nxt_monotonic_time() argument
157 now->monotonic = (nxt_nsec_t) hg_gethrtime(); in nxt_monotonic_time()
174 nxt_monotonic_time(nxt_monotonic_time_t *now) in nxt_monotonic_time() argument
176 now->monotonic = (nxt_nsec_t) gethrtime(); in nxt_monotonic_time()
190 nxt_monotonic_time(nxt_monotonic_time_t *now) in nxt_monotonic_time() argument
196 now->monotonic = (nxt_nsec_t) ts.tv_sec * 1000000000 + ts.tv_nsec; in nxt_monotonic_time()
212 nxt_monotonic_time(nxt_monotonic_time_t *now) in nxt_monotonic_time() argument
214 now->monotonic = mach_absolute_time(); in nxt_monotonic_time()
221 nxt_monotonic_time(nxt_monotonic_time_t *now) in nxt_monotonic_time() argument
229 now->realtime.sec = (nxt_time_t) tv.tv_sec; in nxt_monotonic_time()
230 now->realtime.nsec = tv.tv_usec * 1000; in nxt_monotonic_time()
238 delta = current - now->previous; in nxt_monotonic_time()
239 now->previous = current; in nxt_monotonic_time()
242 now->monotonic += delta; in nxt_monotonic_time()
246 now->monotonic++; in nxt_monotonic_time()
253 now->update = now->monotonic + 1; in nxt_monotonic_time()