Lines Matching refs:tsp
502 static inline void make_timespec(struct timespec *tsp, long delta_msec)
507 tsp->tv_sec = now.tv_sec;
508 tsp->tv_nsec = 1000L * now.tv_usec;
510 tsp->tv_nsec += (delta_msec * 1000000L);
511 if (tsp->tv_nsec > 1000000000L) {
512 long secs = tsp->tv_nsec / 1000000000L;
514 tsp->tv_sec += secs;
515 tsp->tv_nsec -= (secs * 1000000000L);