Lines Matching refs:time
205 tmx.time.tv_sec = offset / NSEC_PER_SEC; in set_offset()
206 tmx.time.tv_usec = offset % NSEC_PER_SEC; in set_offset()
208 if (offset < 0 && tmx.time.tv_usec) { in set_offset()
209 tmx.time.tv_sec -= 1; in set_offset()
210 tmx.time.tv_usec += NSEC_PER_SEC; in set_offset()
213 tmx.time.tv_sec = offset / USEC_PER_SEC; in set_offset()
214 tmx.time.tv_usec = offset % USEC_PER_SEC; in set_offset()
216 if (offset < 0 && tmx.time.tv_usec) { in set_offset()
217 tmx.time.tv_sec -= 1; in set_offset()
218 tmx.time.tv_usec += USEC_PER_SEC; in set_offset()
224 printf("(sec: %ld usec: %ld) ", tmx.time.tv_sec, tmx.time.tv_usec); in set_offset()
240 tmx.time.tv_sec = sec; in set_bad_offset()
241 tmx.time.tv_usec = usec; in set_bad_offset()
244 printf("Invalid (sec: %ld usec: %ld) did not fail! ", tmx.time.tv_sec, tmx.time.tv_usec); in set_bad_offset()