Lines Matching refs:tv
42 struct timeval tv;
43 gettimeofday(&tv, NULL);
44 return tv.tv_sec + double(tv.tv_usec) / 1E6;
51 Absolute::Absolute(const struct timeval &tv)
52 { mValue = tv.tv_sec + double(tv.tv_usec) / 1E6; }
54 Absolute::Absolute(const struct timespec &tv)
55 { mValue = tv.tv_sec + double(tv.tv_nsec) / 1E9; }
59 struct timeval tv;
61 tv.tv_sec = LONG_MAX;
62 tv.tv_usec = 0;
64 tv.tv_sec = int32_t(mValue);
66 tv.tv_usec = int32_t(modf(mValue, &intPart) * 1E6);
68 return tv;
87 struct timeval tv;
89 tv.tv_sec = LONG_MAX;
90 tv.tv_usec = 0;
92 tv.tv_sec = tv.tv_usec = 0;
94 tv.tv_sec = int32_t(mValue);
96 tv.tv_usec = int32_t(modf(mValue, &intPart) * 1E6);
98 return tv;