Lines Matching refs:tv_sec
8 if (tv->tv_sec == 0) { in normalize()
9 while (tv->tv_usec <= -1000000) { tv->tv_usec += 1000000; --tv->tv_sec; } in normalize()
10 while (tv->tv_usec >= 1000000) { tv->tv_usec -= 1000000; ++tv->tv_sec; } in normalize()
11 } else if (tv->tv_sec < 0) { in normalize()
12 while (tv->tv_usec <= -1000000) { tv->tv_usec += 1000000; --tv->tv_sec; } in normalize()
13 while (tv->tv_usec > 0) { tv->tv_usec -= 1000000; ++tv->tv_sec; } in normalize()
15 while (tv->tv_usec >= 1000000) { tv->tv_usec -= 1000000; ++tv->tv_sec; } in normalize()
16 while (tv->tv_usec < 0) { tv->tv_usec += 1000000; --tv->tv_sec; } in normalize()
72 prevdiff.tv_sec = 0; in main()
89 tv.tv_sec -= starttv.tv_sec; in main()
93 diff.tv_sec = tv.tv_sec - rtime->tv_sec; in main()
97 diffdiff.tv_sec = diff.tv_sec - prevdiff.tv_sec; in main()
103 tv.tv_sec, tv.tv_usec, in main()
104 (long)rtime->tv_sec, (long)rtime->tv_nsec / 1000, in main()
105 diff.tv_sec, diff.tv_usec, in main()
106 (long)diffdiff.tv_sec, (long)diffdiff.tv_usec); in main()
111 if (tv.tv_sec < 5) { in main()
122 ts.tv_sec = 0; in main()