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