Lines Matching full:nanoseconds
20 /* nanoseconds per second */
21 #define NANOSECONDS 1000000000 macro
23 /* conversion between l_fp fractions and nanoseconds */
27 (((u_int64)(tsf) * NANOSECONDS + 0x80000000) >> 32))
30 ((((u_int64)(tvu) << 32) + NANOSECONDS / 2) / \
31 NANOSECONDS))
33 # define NSECFRAC (FRAC / NANOSECONDS)
42 /* make sure nanoseconds are in nominal range */
55 * fast enough; so we do a division of the nanoseconds in that in normalize_tspec()
61 if (x.tv_nsec < -3l * NANOSECONDS || in normalize_tspec()
62 x.tv_nsec > 3l * NANOSECONDS) { in normalize_tspec()
63 z = x.tv_nsec / NANOSECONDS; in normalize_tspec()
64 x.tv_nsec -= z * NANOSECONDS; in normalize_tspec()
74 x.tv_nsec += NANOSECONDS; in normalize_tspec()
77 else if (x.tv_nsec >= NANOSECONDS) in normalize_tspec()
79 x.tv_nsec -= NANOSECONDS; in normalize_tspec()
81 } while (x.tv_nsec >= NANOSECONDS); in normalize_tspec()
98 c.tv_nsec = NANOSECONDS - c.tv_nsec; in abs_tspec()