Lines Matching refs:tv
48 struct timespec tv;
50 clock_gettime(CLOCK_REALTIME, &tv);
51 if (diff) nanomove(&tv, diff);
53 if (television) *television = tv;
58 return ((tv.tv_sec+SEVENTIES)<<32)+(((long long)tv.tv_nsec)<<32)/1000000000;
62 static void doublyso(unsigned long long now, struct timespec *tv)
65 tv->tv_sec = (now>>32) + (1LL<<32)*!(now&(1LL<<63));
66 tv->tv_sec -= SEVENTIES; // Force signed math for Y2038 fixup
67 tv->tv_nsec = ((now&0xFFFFFFFF)*1000000000)>>32;
72 struct timespec tv, tv2;
122 pktime[5] = SWAP_BE64(before = lunchtime(&tv, diff));
182 diff = nanodiff(&tv, &tv2);
192 nanomove(&tv, diff/2);
194 diff = nanodiff(&tv, &tv2);