Home | History | Annotate | Download | only in timers

Lines Matching refs:time

29 #include <time.h>
30 #include <sys/time.h>
205 tmx.time.tv_sec = offset / NSEC_PER_SEC;
206 tmx.time.tv_usec = offset % NSEC_PER_SEC;
208 if (offset < 0 && tmx.time.tv_usec) {
209 tmx.time.tv_sec -= 1;
210 tmx.time.tv_usec += NSEC_PER_SEC;
213 tmx.time.tv_sec = offset / USEC_PER_SEC;
214 tmx.time.tv_usec = offset % USEC_PER_SEC;
216 if (offset < 0 && tmx.time.tv_usec) {
217 tmx.time.tv_sec -= 1;
218 tmx.time.tv_usec += USEC_PER_SEC;
224 printf("(sec: %ld usec: %ld) ", tmx.time.tv_sec, tmx.time.tv_usec);
240 tmx.time.tv_sec = sec;
241 tmx.time.tv_usec = usec;
244 printf("Invalid (sec: %ld usec: %ld) did not fail! ", tmx.time.tv_sec, tmx.time.tv_usec);