Lines Matching refs:NSEC_PER_SEC
37 #define NSEC_PER_SEC 1000000000LL macro
204 tmx.time.tv_sec = offset / NSEC_PER_SEC; in set_offset()
205 tmx.time.tv_usec = offset % NSEC_PER_SEC; in set_offset()
209 tmx.time.tv_usec += NSEC_PER_SEC; in set_offset()
255 if (set_offset(NSEC_PER_SEC - 1, 1)) in validate_set_offset()
258 if (set_offset(-NSEC_PER_SEC + 1, 1)) in validate_set_offset()
261 if (set_offset(-NSEC_PER_SEC - 1, 1)) in validate_set_offset()
264 if (set_offset(5 * NSEC_PER_SEC, 1)) in validate_set_offset()
267 if (set_offset(-5 * NSEC_PER_SEC, 1)) in validate_set_offset()
270 if (set_offset(5 * NSEC_PER_SEC + NSEC_PER_SEC / 2, 1)) in validate_set_offset()
273 if (set_offset(-5 * NSEC_PER_SEC - NSEC_PER_SEC / 2, 1)) in validate_set_offset()
302 if (set_bad_offset(0, 2 * NSEC_PER_SEC, 1)) in validate_set_offset()
306 if (set_bad_offset(0, NSEC_PER_SEC, 1)) in validate_set_offset()
310 if (set_bad_offset(0, -NSEC_PER_SEC, 1)) in validate_set_offset()