Lines Matching refs:NSEC_PER_SEC
37 #define NSEC_PER_SEC 1000000000LL macro
205 tmx.time.tv_sec = offset / NSEC_PER_SEC; in set_offset()
206 tmx.time.tv_usec = offset % NSEC_PER_SEC; in set_offset()
210 tmx.time.tv_usec += NSEC_PER_SEC; in set_offset()
257 if (set_offset(NSEC_PER_SEC - 1, 1)) in validate_set_offset()
260 if (set_offset(-NSEC_PER_SEC + 1, 1)) in validate_set_offset()
263 if (set_offset(-NSEC_PER_SEC - 1, 1)) in validate_set_offset()
266 if (set_offset(5 * NSEC_PER_SEC, 1)) in validate_set_offset()
269 if (set_offset(-5 * NSEC_PER_SEC, 1)) in validate_set_offset()
272 if (set_offset(5 * NSEC_PER_SEC + NSEC_PER_SEC / 2, 1)) in validate_set_offset()
275 if (set_offset(-5 * NSEC_PER_SEC - NSEC_PER_SEC / 2, 1)) in validate_set_offset()
304 if (set_bad_offset(0, 2 * NSEC_PER_SEC, 1)) in validate_set_offset()
308 if (set_bad_offset(0, NSEC_PER_SEC, 1)) in validate_set_offset()
312 if (set_bad_offset(0, -NSEC_PER_SEC, 1)) in validate_set_offset()