Home
last modified time | relevance | path

Searched refs:tmx (Results 1 – 1 of 1) sorted by relevance

/tools/testing/selftests/timers/
Dvalid-adjtimex.c208 struct timex tmx = {}; in set_offset() local
211 tmx.modes = ADJ_SETOFFSET; in set_offset()
213 tmx.modes |= ADJ_NANO; in set_offset()
215 tmx.time.tv_sec = offset / NSEC_PER_SEC; in set_offset()
216 tmx.time.tv_usec = offset % NSEC_PER_SEC; in set_offset()
218 if (offset < 0 && tmx.time.tv_usec) { in set_offset()
219 tmx.time.tv_sec -= 1; in set_offset()
220 tmx.time.tv_usec += NSEC_PER_SEC; in set_offset()
223 tmx.time.tv_sec = offset / USEC_PER_SEC; in set_offset()
224 tmx.time.tv_usec = offset % USEC_PER_SEC; in set_offset()
[all …]