Home | History | Annotate | Download | only in utils

Lines Matching refs:ts

49     struct timespec ts;
74 clock_gettime(CLOCK_REALTIME, &ts);
76 ts.tv_sec += t.time_msec/1000;
80 ts.tv_nsec += t.time_msec * 1000000;
81 if(ts.tv_nsec > 999999999) {
83 ts.tv_sec += 1;
84 ts.tv_nsec -= 1000000000;
86 LOC_LOGD("%s:%d]: ts.tv_sec:%d; ts.tv_nsec:%d\n",
87 __func__, __LINE__, (int)ts.tv_sec, (int)ts.tv_nsec);
91 ret = pthread_cond_timedwait(&timer_cond, &timer_mutex, &ts);