Searched refs:p_ts (Results 1 – 2 of 2) 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()
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()