Searched refs:p_ts (Results 1 – 1 of 1) sorted by relevance
90 static void setTimespecRelative(struct timespec *p_ts, long long msec) in setTimespecRelative() argument96 p_ts->tv_sec = tv.tv_sec + (msec / 1000); in setTimespecRelative()97 p_ts->tv_nsec = (tv.tv_usec + (msec % 1000) * 1000L ) * 1000L; in setTimespecRelative()99 if (p_ts->tv_nsec >= NS_PER_S) { in setTimespecRelative()100 p_ts->tv_sec++; in setTimespecRelative()101 p_ts->tv_nsec -= NS_PER_S; in setTimespecRelative()